예제 #1
0
    // Update is called once per frame
    void Update()
    {
        RestrictRigidbodyAngle();
        RestrictRigidbodyVelocity();
        ImageOrientation();

        animator.SetFloat("FlatdeckVelocity", Mathf.Abs(rigidbody.velocity.x));

        if (Input.GetButtonDown("Fire1"))
        {
            stateHandler.ChangeState("playerController");
        }
    }
 public void ChangeState(string state)
 {
     stateHandler.ChangeState(state);
 }