public void ControllerEnter2D(CorgiController2D controller) { controller.State.CanDoubleJump = false; controller.SetVerticalForce(Mathf.Sqrt(2f * JumpPlatformBoost * -controller.Parameters.Gravity)); }
public void Start() { _controller = GetComponent <CorgiController2D>(); _direction = new Vector2(-1, 0); _startPosition = transform.position; }
void Awake() { _sceneCamera = GameObject.FindGameObjectWithTag("MainCamera"); _controller = GetComponent <CorgiController2D>(); Health = MaxHealth; }