Esempio n. 1
0
        private void OnTriggerStay(Collider other)
        {
            if (onCooldown || !CanSpawn || !other.transform.CompareTag("Player"))
            {
                return;
            }

            spawnEvent.Raise(this);
            onCooldown = true;
            Invoke(nameof(ResetCooldown), 2);
        }