예제 #1
0
        private void OnTriggerEnter(Collider other)
        {
            if (!other.gameObject.CompareTag("Finish"))
            {
                return;
            }

            Finish.SafeInvoke();
        }
예제 #2
0
        private void OnFinish()
        {
            if (_disabled)
            {
                return;
            }

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