예제 #1
0
        private bool CheckIfSeeingPlayer()
        {
            if (!sight.CanSeePlayer())
            {
                return(false);
            }
            if (!sight.isLookingAtPlayer())
            {
                return(false);
            }

            ModifyAwareness(GetVisibilityMultiplier());
            if (awareness >= 100)
            {
                awareness = 100;
                GameManager.Instance.EndGame();
            }
            return(true);
        }