/* 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()); } }
void Awake() { PS = PuyoState.Free; }
void Awake() { puyoState = PuyoState.NEXT; x = 3; y = 0; }