We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf05847 commit c4b2bcdCopy full SHA for c4b2bcd
README.md
@@ -48,17 +48,17 @@ public class Unit : MonoBehaviour, ISelectable
48
{
49
private bool m_isSelected = false;
50
private Material m_material;
51
- private ETeam m_team;
+ public ETeam team;
52
53
private void OnEnable()
54
55
- GameManager.Instance.RegisterUnit(m_team, this);
+ GameManager.Instance.RegisterUnit(team, this);
56
}
57
58
private void OnDisable()
59
60
if(gameObject.scene.isLoaded)
61
- GameManager.Instance.UnregisterUnit(m_team, this);
+ GameManager.Instance.UnregisterUnit(team, this);
62
63
64
protected void Awake()
0 commit comments