protected override void OnUpdate() { base.OnUpdate(); GroundDetector.Update(Time.deltaTime); AnimationController.Update(); HorizontalMovementController.Update(); }
private IEnumerator SpawnStandCoroutine() { HorizontalMovementController.SetDirection(1); // Provisional, es muy cutre. KneelController.Kneel(); GameManager.Orb.SetHidden(); yield return(0); Animator.Play("Kneeling", 0, 1); // Provisional. yield return(new WaitForSeconds(1.5f)); KneelController.Stand(); yield return(new WaitForSeconds(1)); isControlled = true; if (SaveSystem.currentOrbType != OrbController.OrbType.None) { GameManager.Orb.Appear(); } }
private void FixedUpdate() { HorizontalMovementController?.FixedUpdate(); JumpController?.FixedUpdate(); }