Exemple #1
0
    private bool IsDirectionBonus()
    {
        bool DirectionBonus = false;

        if (BS.GetCurrentAttackDirection() == BattleState.AttackDirection.Up && BS.GetEnemyAttackDirection() == BattleState.AttackDirection.Down ||
            BS.GetCurrentAttackDirection() == BattleState.AttackDirection.Down && BS.GetEnemyAttackDirection() == BattleState.AttackDirection.Up ||
            BS.GetCurrentAttackDirection() == BattleState.AttackDirection.Left && BS.GetEnemyAttackDirection() == BattleState.AttackDirection.Right ||
            BS.GetCurrentAttackDirection() == BattleState.AttackDirection.Right && BS.GetEnemyAttackDirection() == BattleState.AttackDirection.Left)
        {
            DirectionBonus = true;
        }

        return(DirectionBonus);
    }