Пример #1
0
 public void AddObject(DungeonObject ob)
 {
     ob.SetPosition(x, y);
     ob.transform.parent        = transform;
     ob.transform.localPosition = Vector3.zero;
     objectList.AddFirst(ob);
     SetRevealed(isRevealed);
 }
Пример #2
0
 public void AddObject(DungeonObject ob, bool isMove = false)
 {
     ob.transform.parent        = transform;
     ob.transform.localPosition = Vector3.zero;
     objectList.AddFirst(ob);
     if (isMove)
     {
         ob.Move(x, y);
     }
     else
     {
         ob.SetPosition(x, y);
     }
     if (ob.preventsObjectSpawning)
     {
         map.tilesThatAllowSpawn.Remove(this);
     }
     SetInView(isInView);
     SetLit(isLit);
 }