Ejemplo n.º 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
     }
 }
Ejemplo n.º 2
0
 private void ActivateRoom(ActiveRoomController.Room room)
 {
     ActiveRoomController.Room.FlipRooms(room);
     ActiveRoomController.Wall.changeState((room.GetroomNum() - 1));
 }