private void OnTriggerEnter(Collider other) { if (!other.gameObject.CompareTag("Finish")) { return; } Finish.SafeInvoke(); }
private void OnFinish() { if (_disabled) { return; } _disabled = true; _move.Dispose(); Finish.SafeInvoke(); }