Ejemplo n.º 1
0
    public PlayerAnimationFsm(string characterType)
        : base()
    {
        onlyInstance = this;

        Start();

        SwapState(new InitState(this, characterType));
    }
Ejemplo n.º 2
0
        public PlayerInputFsm(PlayerAnimationFsm animationFsm)
            : base()
        {
            this.animationFsm = animationFsm;

            Start();

            SwapState(new IdleState(this));
        }
Ejemplo n.º 3
0
 public InitState(PlayerAnimationFsm parent, string characterType)
     : base(parent)
 {
     this.parent = parent;
     this.characterType = characterType;
 }
Ejemplo n.º 4
0
        public PlayerAttackingFsm(PlayerAnimationFsm animationFsm, GameObject player)
            : base()
        {
            this.animationFsm = animationFsm;
            this.player = player;

            Start();

            SwapState(new IdleState(this));
        }
Ejemplo n.º 5
0
 public IdleState(PlayerAnimationFsm parent)
     : base(parent)
 {
     this.parent = parent;
 }