void Start() { spwanObjectRandom = GetComponent <SpwanObjectRandom>(); for (int i = 0; i < numSpawnGen; i++) { spwanObjectRandom.SpawnThing(); } }
private void Start() { rb = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); coli = GetComponent <Collider2D>(); spwanObjectRandom = GetComponent <SpwanObjectRandom>(); for (int i = 0; i < numSpawnGen; i++) { spwanObjectRandom.SpawnThing(); } cherryText = dialogInfo.transform.Find("CherryNum").GetComponent <Text>(); gemText = dialogInfo.transform.Find("GemNum").GetComponent <Text>(); hurtText = dialogInfo.transform.Find("HurtNum").GetComponent <Text>(); }