Beispiel #1
0
 void BackToMoveMotion()
 {
     playerInfo.SetSwordActive(1);
     nowState = new MoveState();
     nowState.InitNextState(playerInfo);
     playerInfo.animator.CrossFade("Idle", 0.2f);
 }
Beispiel #2
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);
        }