Exemplo n.º 1
0
 public void CallAction_Attack()
 {
     if (HeldObject != null)
     {
         if (HeldObject.GetComponent <UnitActions>() == true)
         {
             UnitActions actions = HeldObject.GetComponent <UnitActions>();
             if (actions.ActionAvailable)
             {
                 Debug.Log("ATTACKING!!!");
                 actions.Action_Attack();
                 //Cancel();
             }
         }
     }
 }