Exemplo n.º 1
0
        private void OnTriggerEnter(Collider other)
        {
            if (!other.gameObject.CompareTag("Finish"))
            {
                return;
            }

            Finish.SafeInvoke();
        }
Exemplo n.º 2
0
        private void OnFinish()
        {
            if (_disabled)
            {
                return;
            }

            _disabled = true;
            _move.Dispose();
            Finish.SafeInvoke();
        }