Example #1
0
        protected override void OnUpdate()
        {
            base.OnUpdate();

            GroundDetector.Update(Time.deltaTime);
            AnimationController.Update();
            HorizontalMovementController.Update();
        }
Example #2
0
        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();
            }
        }
Example #3
0
 private void FixedUpdate()
 {
     HorizontalMovementController?.FixedUpdate();
     JumpController?.FixedUpdate();
 }