Пример #1
0
 //function to instantiate the nodes without code repitition
 public void InstantiateNode(RoomNode _room, GameObject _prefab, bool _filled, int _roomType)
 {
     _room.self = Instantiate(_prefab);
     _room.self.transform.SetParent(this.transform);
     _room.isFilled      = _filled;
     _room.interriorType = _roomType;
     _room.InitSelf();
 }