public void Show() { mover.StartMoving(currentData.Speed); visibility.Show(); objectVisibility.Show(); state = State.Moving; }
private void OnGameRestart() { collisionState = CollisionState.Disabled; transform.position = underCameraPosition.position; visibility.Show(); transform.DOMoveY(startingPosition.y, properties.MovementProperties.RestartMovementDuration) .SetEase(properties.MovementProperties.Easing); StartGame(); }