void ActivateLightsInDungeonRoom() { DungeonRoom dr = CommonObjects.Player_C.GetOccupiedDungeonRoom(); if (dr != null && !dr.IsNpcRoom) { dr.ActivateTorchLights(); } }
void InitLighting(DungeonRoom dr) { // Torches if (centralLighting) { dr.torchLight_A.transform.parent.SetLocalZ(0); dr.torchLight_A.transform.parent.SetLocalY(5); dr.torchLight_B.transform.parent.SetLocalY(5); dr.torchLight_B.transform.parent.SetLocalZ(0); } dr.TorchColor = torchColor; dr.TorchRange = torchRange; dr.ActivateTorchLights(dr.Info.isLit); }