public override void OnExit(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     if (t.position != playerStateBase.characterControl.transform.position)
     {
         t.position = playerStateBase.characterControl.transform.position;
     }
 }
 public override void OnUpdate(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     if (stateInfo.normalizedTime >= TransitionTiming)
     {
         animator.SetBool(HashManger.Instance.DicMainParameters[TranistionParemeters.ForceTransition], true);
     }
 }
Ejemplo n.º 3
0
 public override void OnUpdate(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     if (stateInfo.normalizedTime >= Transitions)
     {
         CameraManger.Instance.Game_CamController.animator.SetTrigger(CameraTriggers.Default.ToString());
     }
 }
Ejemplo n.º 4
0
 public override void OnUpdate(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     if (playerStateBase.characterControl.Jump &&
         playerStateBase.characterControl.isGrounded == true)
     {
         animator.SetBool(HashManger.Instance.DicMainParameters[TranistionParemeters.Jump], true);
     }
 }
Ejemplo n.º 5
0
 public override void OnEnter(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     CameraManger.Instance.ShakeCamera(0.3f);
     playerStateBase.characterControl.StartRun = false;
     playerStateBase.characterControl.GameOver = true;
     playerStateBase.characterControl.Death    = false;
     animator.SetBool(HashManger.Instance.DicMainParameters[TranistionParemeters.Die], false);
 }
Ejemplo n.º 6
0
        public override void OnEnter(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
        {
            CameraManger.Instance.ShakeCamera(0.2f);
            playerStateBase.characterControl.RIGIDBODY.useGravity = false;

            playerStateBase.characterControl.RIGIDBODY.AddForce
                (playerStateBase.characterControl.transform.forward * dashForce, ForceMode.Impulse);
        }
        public override void OnEnter(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
        {
            playerStateBase.characterControl.UpdateNow = true;

            playerStateBase.characterControl.targetCenter_C       = targetCenter;
            playerStateBase.characterControl.targetHeight         = targetHieght;
            playerStateBase.characterControl.CenterUpdate_Speed_C = CenterUpdate_Speed;
            playerStateBase.characterControl.SizeUpdate_Speed_C   = sizeUpdate_Speed;
        }
Ejemplo n.º 8
0
 public override void OnUpdate(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     if (!CameraManger.Instance.CAMERACONTROLLER.animator.GetBool(CameraTriggers.Default.ToString()))
     {
         if (stateInfo.normalizedTime >= camSwitch)
         {
             CameraManger.Instance.CAMERACONTROLLER.animator.SetTrigger(CameraTriggers.Default.ToString());
         }
     }
 }
Ejemplo n.º 9
0
 public override void OnUpdate(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     if (playerStateBase.characterControl.Walk)
     {
         animator.SetBool(HashManger.Instance.DicMainParameters[TranistionParemeters.Walk], true);
     }
     else
     {
         animator.SetBool(HashManger.Instance.DicMainParameters[TranistionParemeters.Walk], false);
     }
 }
Ejemplo n.º 10
0
 public override void OnUpdate(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     if (playerStateBase.fightingSystem.FightMod)
     {
         animator.SetBool(HashManger.Instance.DicMainParameters[TranistionParemeters.Fight], true);
     }
     else
     {
         animator.SetBool(HashManger.Instance.DicMainParameters[TranistionParemeters.Fight], false);
     }
 }
Ejemplo n.º 11
0
        public override void OnUpdate(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
        {
            if (playerStateBase.characterControl.isGrounded)
            {
                animator.SetBool(HashManger.Instance.DicMainParameters[TranistionParemeters.Grounded], true);
            }
            else
            {
                animator.SetBool(HashManger.Instance.DicMainParameters[TranistionParemeters.Grounded], false);
            }

            if (playerStateBase.characterControl.isGrounded && !playerStateBase.characterControl.Slide)
            {
                playerStateBase.characterControl.transform.rotation = Quaternion.Euler(0f, 0f, 0f);
            }
        }
Ejemplo n.º 12
0
        public override void OnUpdate(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
        {
            if (playerStateBase.characterControl.isGrounded)
            {
                CanDash = true;

                if (playerStateBase.characterControl.Dash)
                {
                    animator.SetBool(HashManger.Instance.DicMainParameters[TranistionParemeters.Dash], true);
                }
            }
            else
            {
                if (CanDash && playerStateBase.characterControl.Dash)
                {
                    animator.SetBool(HashManger.Instance.DicMainParameters[TranistionParemeters.Dash], true);
                    CanDash = false;
                }
            }
        }
 public override void OnExit(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     playerStateBase.characterControl.UpdateNow = false;
 }
Ejemplo n.º 14
0
 public override void OnExit(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     CameraManger.Instance.CAMERACONTROLLER.TriggerCamera(CameraTriggers.Default);
 }
Ejemplo n.º 15
0
 public override void OnExit(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     playerStateBase.characterControl.RIGIDBODY.useGravity = true;
 }
Ejemplo n.º 16
0
 public override void OnEnter(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     playerStateBase.characterControl.StartRun = false;
 }
 public override void OnEnter(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     t = animator.GetComponent <Transform>();
 }
Ejemplo n.º 18
0
 public override void OnExit(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     animator.SetBool(HashManger.Instance.DicMainParameters[TranistionParemeters.Dash], false);
 }
Ejemplo n.º 19
0
 public override void OnExit(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     playerStateBase.characterControl.gravityMultiplier = 0f;
 }
Ejemplo n.º 20
0
 public override void OnEnter(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     CameraManger.Instance.CAMERACONTROLLER.animator.SetTrigger(CameraTriggers.Fight.ToString());
 }
 public override void OnUpdate(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     if (!CameraManger.Instance.CAMERACONTROLLER.animator.GetBool(CameraTriggers.Default.ToString()))
     {
     }
 }
 public override void OnUpdate(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     playerStateBase.characterControl.RunForward(speed);
 }
Ejemplo n.º 23
0
 public override void OnEnter(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     playerStateBase.characterControl.RIGIDBODY.useGravity = true;
     playerStateBase.characterControl.anim.applyRootMotion = false;
 }
Ejemplo n.º 24
0
 public override void OnExit(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     CameraManger.Instance.Game_CamController.animator.SetTrigger(CameraTriggers.Default.ToString());
 }
Ejemplo n.º 25
0
 public override void OnEnter(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     playerStateBase.characterControl.anim.applyRootMotion = true;
 }
Ejemplo n.º 26
0
 public override void OnEnter(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     playerStateBase.characterControl.RIGIDBODY.AddForce
         (playerStateBase.characterControl.transform.up * DoubleJumpForce_Val, ForceMode.Impulse);
 }
Ejemplo n.º 27
0
 public override void OnExit(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
 }
Ejemplo n.º 28
0
 public override void OnUpdate(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     playerStateBase.characterControl.gravityMultiplier = gravity.Evaluate(stateInfo.normalizedTime);
 }
 public abstract void OnUpdate(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo);
Ejemplo n.º 30
0
 public override void OnEnter(PlayerStateBase playerStateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     playerStateBase.characterControl.RIGIDBODY.velocity = Vector3.zero;
 }