private void SpawnTile() { AddRandomOpenSides(); RoomSpawnManager.Instance.SpawnTile(this, RequiredOpenSides); _spawned = true; RemoveExcessDetectionPoints(); TileSpecialSpawnScript = GetComponentInChildren <TileContainedObjectScript>(); }
// Start is called before the first frame update void Start() { if (_startTile) { TileSpecialSpawnScript = GetComponentInChildren <TileContainedObjectScript>(); } else { Invoke("SpawnTile", 0.05f); } }