Esempio n. 1
0
    /*  void Rotate() {
     *
     *    if(PS!=PuyoState.Grounded && Input.GetButtonDown("Fire1")){
     *        SP.Rot(transform.position.x, transform.position.y);
     *
     *
     *    }
     *
     * }*/

    private void OnCollisionEnter2D(Collision2D C)
    {
        if (C.gameObject.tag == "Ground")
        {
            PS = PuyoState.Grounded;
            Puyo.isKinematic = false;
            StartCoroutine(B.CompareGrid());
        }

        if (C.gameObject.tag == "Puyo" && C.gameObject.GetComponent <Puyo_Movement>().PS == PuyoState.Grounded)
        {
            PS = PuyoState.Grounded;
            StartCoroutine(B.CompareGrid());
        }
    }
Esempio n. 2
0
 void Awake()
 {
     PS = PuyoState.Free;
 }
Esempio n. 3
0
 void Awake()
 {
     puyoState = PuyoState.NEXT;
     x         = 3;
     y         = 0;
 }