Skip to content

Commit 0f6e621

Browse files
committed
Add missing uint editor code
1 parent 448129f commit 0f6e621

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed
Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
using System.Collections;
2-
using System.Collections.Generic;
3-
using UnityEngine;
1+
using UnityEditor;
42

53
namespace RaCoding.GameEvents
64
{
7-
public class UIntGameEventEditor : MonoBehaviour
5+
[CustomEditor(typeof(GameEvent<uint>), editorForChildClasses: true)]
6+
public class UIntGameEventEditor : GameEventEditor<uint>
87
{
9-
// Start is called before the first frame update
10-
void Start()
8+
protected override uint GetValue()
119
{
12-
13-
}
14-
15-
// Update is called once per frame
16-
void Update()
17-
{
18-
10+
return (uint)EditorGUILayout.IntField(1);
1911
}
2012
}
21-
}
13+
}

0 commit comments

Comments
 (0)