Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Packages/SOVariables/Editor/SByteVariableEditor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using UnityEditor;

namespace RaCoding.Variables
{
[CustomEditor(typeof(SByteMutableVariable), editorForChildClasses: true)]
public class SByteVariableEditor : VariableEditor<sbyte>
{
protected override void AssignResetValue()
{
resetValue.intValue = value.intValue;
}
}
}
11 changes: 11 additions & 0 deletions Packages/SOVariables/Editor/SByteVariableEditor.cs.meta

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using UnityEngine;

namespace RaCoding.Variables
{
[CreateAssetMenu(fileName = "SByteImmutableVariable", menuName = "RaCoding/Variables/Immutable/Create new immutable sbyte variable")]
public class SByteImmutableVariable : ImmutableVariable<sbyte> { }
}

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

7 changes: 7 additions & 0 deletions Packages/SOVariables/Runtime/Mutable/SByteMutableVariable.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using UnityEngine;

namespace RaCoding.Variables
{
[CreateAssetMenu(fileName = "SByteMutableVariable", menuName = "RaCoding/Variables/Mutable/Create new mutable sbyte variable")]
public class SByteMutableVariable : MutableVariable<sbyte> { }
}
11 changes: 11 additions & 0 deletions Packages/SOVariables/Runtime/Mutable/SByteMutableVariable.cs.meta

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

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Install with the Unity Package Manager: https://github.com/Ra-Coding/unity-scrip

- bool
- byte
- sbyte
- short
- int
- long
Expand Down