void Start() { templates = GameObject.FindGameObjectWithTag("Rooms").GetComponent <roomTemplates>(); Invoke("Spawn", 0.2f); }
// Start is called before the first frame update void Start() { templates = GameObject.FindGameObjectWithTag("Rooms").GetComponent <roomTemplates>(); //verzögert, da sonst buggy Invoke("spawnRoom", 0.1f); }
private void Start() { template = GameObject.FindGameObjectWithTag("rooms").GetComponent<roomTemplates>(); Invoke("spawn", 0.1f); Destroy(gameObject, waitTime); }
void Start() { // add the room to a list of rooms in the roomTemplates object templates = GameObject.FindGameObjectWithTag("Rooms").GetComponent <roomTemplates>(); templates.rooms.Add(this.gameObject); }
private void Start() { templates = GameObject.FindGameObjectWithTag("rooms").GetComponent <roomTemplates>(); templates.rooms.Add(this.gameObject); }