|
@ -14,6 +14,7 @@ public class LighthouseLanding : MonoBehaviour |
|
|
{ |
|
|
{ |
|
|
NotificationServer.register("statechange Searchlight", searchlightStateChanged); |
|
|
NotificationServer.register("statechange Searchlight", searchlightStateChanged); |
|
|
NotificationServer.register("switch off", switchBeamOff); |
|
|
NotificationServer.register("switch off", switchBeamOff); |
|
|
|
|
|
NotificationServer.register("restart scene", restartScene); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void OnTriggerEnter(Collider other) |
|
|
void OnTriggerEnter(Collider other) |
|
@ -68,4 +69,9 @@ public class LighthouseLanding : MonoBehaviour |
|
|
if (transform == lastTriggered) |
|
|
if (transform == lastTriggered) |
|
|
switchedOff = true; |
|
|
switchedOff = true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void restartScene() |
|
|
|
|
|
{ |
|
|
|
|
|
switchedOff = false; |
|
|
|
|
|
} |
|
|
} |
|
|
} |