-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created variable, reference for LayerMask
* 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
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
11
Assets/SO Architecture/References/LayerMaskReference.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
11
Assets/SO Architecture/Variables/LayerMaskVariable.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.