Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        _constants  = GameObject.Find("ConstantsHolder").GetComponent <Constants> ();
        _references = GameObject.Find("ReferenceHolder").GetComponent <References> ();
        _register   = GameObject.Find("UnitRegisterHolder").GetComponent <UnitRegister> ();

        _references.RegisterUI(this);
        UIState = Constants.UISTATE.Clear;
    }
Exemplo n.º 2
0
 public void SelectAttack()
 {
     ClearCommands();
     UIState = Constants.UISTATE.Attack;
 }
Exemplo n.º 3
0
 public void SelectMove()
 {
     ClearCommands();
     UIState = Constants.UISTATE.Move;
 }
Exemplo n.º 4
0
 //call when selecting a new unit or command to clear UIState, targets, etc.
 public void ClearCommands()
 {
     UIState      = Constants.UISTATE.Clear;
     AttackTarget = null;
 }