Beispiel #1
0
        public bool CheckForKillablePlayer(EnemyType enemyType)
        {
            bool killable = true;

            if (playerController.GetPlayerState() == PlayerStates.AMBUSH)
            {
                return(false);
            }
            else
            {
                if (playerController.GetDisguiseType() != EnemyType.None)
                {
                    if (enemyType == playerController.GetDisguiseType())
                    {
                        return(false);
                    }
                }
            }

            return(killable);
        }