22 lines
405 B
C#
22 lines
405 B
C#
using UnityEngine;
|
|
|
|
namespace NaughtyAttributes.Test
|
|
{
|
|
//[CreateAssetMenu(fileName = "NaughtyScriptableObject", menuName = "NaughtyAttributes/_NaughtyScriptableObject")]
|
|
public class _NaughtyScriptableObject : ScriptableObject
|
|
{
|
|
public int myInt;
|
|
|
|
[Button]
|
|
private void IncrementMyInt()
|
|
{
|
|
myInt++;
|
|
}
|
|
|
|
[Button("Decrement My Int")]
|
|
private void DecrementMyInt()
|
|
{
|
|
myInt--;
|
|
}
|
|
}
|
|
}
|