private void Awake() { transform = GetComponent <Transform>(); positionTween.AddOnFinished(() => { blockMovement = false; OnCameraMoveFinished?.Invoke(); }); }
private void RepositionCamera() { if ((transform.position - startPosition).sqrMagnitude < 0.01f) { OnCameraMoveFinished?.Invoke(); } else { MoveCamera(transform.position, startPosition); } TapController.OnTap += MoveUp; }