forked from AtomicGameEngine/AtomicGameEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestComponent.cs
More file actions
47 lines (34 loc) · 978 Bytes
/
TestComponent.cs
File metadata and controls
47 lines (34 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using AtomicEngine;
namespace ComponentTest
{
public enum BehaviorState
{
Friendly,
Aggressive,
Neutral
}
public class TestComponent : CSComponent
{
[Inspector]
public bool MyBoolValue = true;
[Inspector]
public int MyIntValue = 5;
[Inspector]
public int MyOtherIntValue = 101;
[Inspector]
public Vector3 MyVector3Value = new Vector3(1, 1, 1);
[Inspector]
public Quaternion MyQuaternionValue = new Quaternion(1, 0, 0, 0);
[Inspector()]
public float MyFloatValue = 42.0f;
[Inspector]
public string MyStringValue = "Hey!";
[Inspector]
public BehaviorState State = BehaviorState.Neutral;
[Inspector("Textures/chest.png")]
public Sprite2D MySprite2DValue;
[Inspector(DefaultValue : "Textures/chest.png")]
public Sprite2D MyOtherSprite2DValue;
}
}