Ejemplo n.º 1
0
 private void HandleOnTriggerExit(Collider other)
 {
     if (other.CompareTag(TagManager.Player))
     {
         _playerController      = null;
         _playerSenseController = null;
     }
 }
Ejemplo n.º 2
0
 private void HandleOnTriggerEnter(Collider other)
 {
     if (other.CompareTag(TagManager.Player))
     {
         _playerController      = other.GetComponent <PlayerController>();
         _playerSenseController = other.GetComponent <PlayerSenseController>();
         ActivateDecisionPoint();
     }
 }
        private void OnTriggerEnter(Collider other)
        {
            if (other.CompareTag(TagManager.Player))
            {
                _playerController = other.GetComponent <PlayerController>();
                _playerController.RegisterInterestModifier(this);

                _playerSenseController = other.GetComponent <PlayerSenseController>();
            }
        }
        private void OnTriggerExit(Collider other)
        {
            if (other.CompareTag(TagManager.Player))
            {
                _playerController.UnRegisterInterestModifier(this);
                _playerController = null;

                _playerSenseController = null;
            }
        }
Ejemplo n.º 5
0
        private void OnTriggerEnter(Collider other)
        {
            if (other.CompareTag(TagManager.Player))
            {
                _playerController = other.GetComponent <PlayerController>();
                _playerController.StopPlayerMovement();

                _playerSenseController = other.GetComponent <PlayerSenseController>();

                CheckAndSwitchScene();
            }
        }