Esempio n. 1
0
 public void EnableAttackMode(PlayerSkillState skill)
 {
     if (canChangeAttackMode)
     {
         attackMode = skill;
         GameEvents.current.UpdateBattleLog("Player mode is: " + attackMode.ToString());
     }
     else
     {
         GameEvents.current.UpdateBattleLog(" Can't  change player skill mode");
     }
 }
Esempio n. 2
0
    public void ToggleAttackMode()
    {
        //Jos vaihdellaan kahden moden välillä
        //attackMode = attackMode == AttackMode.WeaponThrow ? AttackMode.SummonFamiliar : AttackMode.WeaponThrow;
        if ((int)attackMode < System.Enum.GetValues(typeof(PlayerSkillState)).Length - 1)
        {
            attackMode++;
        }
        else
        {
            attackMode = 0;
        }

        GameEvents.current.UpdateBattleLog("Player mode is: " + attackMode.ToString());
    }