Пример #1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.name == "Player")
        {
            playerController.lastCheckpoint = transform;
            OnCheckpointReached?.Invoke(this);

            if (singleUse)
            {
                gameObject.SetActive(false);
            }
        }
    }