示例#1
0
 private void OnTriggerExit(Collider other)
 {
     if (IsTarget(other.gameObject))
     {
         _exitEvent?.Trigger();
     }
 }
示例#2
0
文件: Zone.cs 项目: eunho5751/BBB
 private void CheckClear()
 {
     if (_deadCount == _enemies.Length)
     {
         _player.SendMessage("RecoverHealth");
         IsCleared = true;
         UIManager.Instance.SetGoActive(true);
         _clearEvent?.Trigger();
     }
 }
示例#3
0
文件: Zone.cs 项目: eunho5751/BBB
    private void OnRestrictorPassed()
    {
        _player.SendMessage("Deactivate");
        _director.Play();

        _enterEvent?.Trigger();
        SetZoneActive(true);
        UIManager.Instance.SetGoActive(false);

        CheckClear();
    }