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"); } }
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()); }