Beispiel #1
0
    public void OnPlayerAttacked(UnitEnemy _Enemy)
    {
        if (_Enemy != null)
        {
            m_Player.TakeDamages(1);
            m_Player.AttackEnemy();
        }

        /*
         * if (Application.isMobilePlatform)
         * {
         *  if (_Enemy != null)
         *  {
         *      SetInputMode(new InputMode_MeleeBattle());
         *  }
         *  else
         *  {
         *      SetInputMode(new InputMode_Movement());
         *  }
         * }
         * else
         * {
         *  if (_Enemy != null)
         *  {
         *      SetInputMode(new InputMode_MeleeBattleDebug());
         *  }
         *  else
         *  {
         *      SetInputMode(new InputMode_MovementDebug());
         *  }
         * }*/
    }