예제 #1
0
    // Use this for initialization
    void Start()
    {
        if (pState == null)
        {
            pState = GetComponent <PlayerStateList>();
        }

        rb = GetComponent <Rigidbody2D>();

        grabity = rb.gravityScale;
    }
    //public bool isGrounded;

    void Awake()
    {
        if (pState == null)
        {
            pState = GetComponent <PlayerStateList>();
        }

        rb = GetComponent <Rigidbody2D>();

        grabity = rb.gravityScale;

        pState.facingRight = true;
    }