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