Пример #1
0
    //=====================================================

    public void OnTriggerEnter(Collider collision)
    {
        if (_isTriggered == true)
        {
            return;
        }

        if (collision.tag != UnityTags.Player)
        {
            return;
        }

        if (_bossManager == null)
        {
            return;
        }

        _isTriggered = true;
        _bossManager.OnStartGame();
    }