Untitled

 avatar
unknown
plain_text
a year ago
908 B
32
Indexable
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;
        }
    }
}
Editor is loading...
Leave a Comment