Untitled

mail@pastecode.io avatar
unknown
plain_text
16 days ago
908 B
25
Indexable
Never
public class SpawnPuyoScript : MonoBehaviour
{
    public GameObject puyo2;
    public GameObject puyoSpawn;
    public PuyoScript puyoScript;
    public GameObject activePuyo;
    public bool Spawn = true;
    public int color1;
    public int color2;
    public ColorScript colorScript;
    public Customization customization;
    void Start()
    {
        if (Spawn == true)
        {
            GameObject activePuyo = Instantiate(puyo2, puyoSpawn.transform.position, puyo2.transform.rotation);
            Spawn = false;
        }
    }

    // Update is called once per frame
    void Update()
    {
        if (Spawn == true)
        if (puyoScript.dropSet == -3)
        {
            GameObject activePuyo = Instantiate(puyo2, puyoSpawn.transform.position, puyo2.transform.rotation);
            Spawn = false;
            puyoScript.Fall = true;
        }
    }
}
Leave a Comment