void Update() { _InputHandler(); if (rigid.velocity.y < -5.0f) { isFalling = true; } if (isControlable && !isUsingBox) { _FlipXHandler(); } _AnimationHandler(); _FootStepHandler(); _FocusHandler(); if (isInCinematic) { StopUsingFocus(); _Controlable(false); Debug.Log("In cinematic.."); } else { if (!worldWrappingControl.IsUseFocus && !isControlable) { _Controlable(true); } } //Hacks if (platformAttacher) { if (rigid.velocity.y <= 0.3f) { if (isGrounded) { platformAttacher.Use(input.x == 0.0f); } } else { platformAttacher.Use(false); } } }
void Update() { if (platformAttacher) { platformAttacher.Use(!isUsing && !isInitReset); } _InputHandler(); _CheckInteractable(); _ToggleUIHandler(); }