Пример #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.name == "Trigger")
     {
         ActiveRoomController.Room roomVar = activeRoomController.FindTrigger(other.gameObject);
         ActivateRoom(roomVar);
         //Debug.Log(roomVar.GetroomNum());
         //Debug.Log(string.Format("Collision Detected - Room {0}", roomToActivate.GetroomNum()));
     }
     else
     {
         // nothing
     }
 }
Пример #2
0
 private void ActivateRoom(ActiveRoomController.Room room)
 {
     ActiveRoomController.Room.FlipRooms(room);
     ActiveRoomController.Wall.changeState((room.GetroomNum() - 1));
 }