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