Exemple #1
0
        public PlayerState(PlayerController playerController, PlayerInput playerInput, PlayerData playerData, string animation)
        {
            pController = playerController;
            pInput      = playerInput;
            pData       = playerData;

            this.animation = animation;

            timer    = 0f;
            newState = this;
        }
 public GroundedDownwardAttackState(PlayerController playerController, PlayerInput playerInput, PlayerData playerData, string animation) : base(playerController, playerInput, playerData, animation)
 {
     pData.AnimationLength.TryGetValue(animation, out animationLength);
     sound = Resources.Load <AudioClip>(@"Sounds/mage_knight_sword");
 }