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; }
public void TurnOff() { thisRoom.SetLights(false); }