示例#1
0
        public void EnterOrLeaveRoom(RoomObjective room)
        {
            //IsInRoom = !IsInRoom;
            if (IsInRoom)
            {
                room.SetLights(true);
                room.OnPlayerEntered += _owner.RunAway;
                room.OnRoomDestroyed += RoomIsDestroyed;
            }

            room.OnPlayerEntered -= _owner.RunAway;
            room.OnRoomDestroyed -= RoomIsDestroyed;
        }
示例#2
0
 public void TurnOff()
 {
     thisRoom.SetLights(false);
 }