Skip to content

Commit

Permalink
Created variable, reference for LayerMask
Browse files Browse the repository at this point in the history
* Created LayerMaskVariable and LayerMaskReference. This type is often used to filter objects for collision detection to specific layers specified in the Flag value.
  • Loading branch information
jzapdot committed Dec 19, 2019
1 parent 9f0ad4f commit bf68f39
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Assets/SO Architecture/References/LayerMaskReference.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using UnityEngine;

namespace ScriptableObjectArchitecture
{
[System.Serializable]
public sealed class LayerMaskReference : BaseReference<LayerMask, LayerMaskVariable>
{
public LayerMaskReference() : base() { }
public LayerMaskReference(LayerMask value) : base(value) { }
}
}
11 changes: 11 additions & 0 deletions Assets/SO Architecture/References/LayerMaskReference.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Assets/SO Architecture/Variables/LayerMaskVariable.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using UnityEngine;

namespace ScriptableObjectArchitecture
{
[CreateAssetMenu(
fileName = "LayerMaskVariable.asset",
menuName = SOArchitecture_Utility.ADVANCED_VARIABLE_SUBMENU + "LayerMask",
order = 120)]
public class LayerMaskVariable : BaseVariable<LayerMask>
{
}
}
11 changes: 11 additions & 0 deletions Assets/SO Architecture/Variables/LayerMaskVariable.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf68f39

Please sign in to comment.