Beispiel #1
0
 void ProcessMouseClick()
 {
     if (CrossPlatformInputManager.GetButtonDown("Attack"))
     {
         weaponSystem.AttackTargets(targets);
     }
     else if (CrossPlatformInputManager.GetButtonDown("Special Ability 0"))
     {
         if (targets.Length != 0)
         {
             abilitySystem.AttemptSpecialAbility(0, targets[0].gameObject);
         }
         else
         {
             abilitySystem.AttemptSpecialAbility(0);
         }
     }
 }