예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        StateContext context = new StateContext();

        context.MState = new StateIdle(context);
        context.DoAction();
        context.DoAction();



        rb           = GetComponent <Rigidbody2D>();
        BodyCollider = GetComponent <BoxCollider2D>();
        anim         = GetComponent <Animator>();
    }