Exemple #1
0
    void Awake()
    {
        animator = GetComponent <Animator>();
        rb       = GetComponent <Rigidbody2D>();
        fsm      = GetComponent <Fsm>();

        fsm.AddStateName("Idle");
        fsm.AddStateName("Run");
    }