Example #1
0
 public override void InitNextState(PlayerInformation info)
 {
     base.InitNextState(info);
     playerInfo.animator.SetBool("Key", false);
     playerInfo.speed = 0f;
     nowStateIndex    = 0;
     //playerInfo.swordCollision.SetAttackForce (attackInfo.ForceZ[nowStateIndex], attackInfo.ForceY[nowStateIndex]);
     playerInfo.animator.CrossFade(attackInfo.stateName[nowStateIndex], 0.1f);
 }
Example #2
0
        public override void InitNextState(PlayerInformation info)
        {
            base.InitNextState(info);
            if (isGround)
            {
                playerInfo.animator.CrossFade("Idle", 0.2f);
            }

            playerInfo.speed = RUN_SPEED;
            playerInfo.gameManager.signalCounter = 0;
            playerInfo.SetSwordActive(1);
        }
Example #3
0
        public void Prepare(GameManager gm, PlayerCamera ca, CharacterData data)
        {
            inputManager = gm.GetComponent <InputManager> ();

            WeaponObject[] swordOjects = new WeaponObject[2];
            swordOjects = GetComponentsInChildren <WeaponObject> ();

            playerInfo = new PlayerInformation(data, gm, ca, GetComponent <Animator> (), swordOjects, transform);
            nowState   = new MoveState();
            nowState.InitNextState(playerInfo);
            playerInfo.SetSwordActive(1);
            playerInfo.SetCameraTargetPosition(transform);
        }
Example #4
0
 public virtual void InitNextState(PlayerInformation info)
 {
     nextState  = this;
     playerInfo = info;
 }
Example #5
0
 public override void InitNextState(PlayerInformation info)
 {
     base.InitNextState(info);
     playerInfo.speed = 0f;
     damageTime       = Time.time;
 }
Example #6
0
 public override void InitNextState(PlayerInformation info)
 {
     base.InitNextState(info);
     playerInfo.animator.CrossFade("Jump_dush", 0.1f);
 }
Example #7
0
 public override void InitNextState(PlayerInformation info)
 {
     base.InitNextState(info);
     playerInfo.animator.CrossFade("Guard_Pose", 0.01f);
 }