diff --git a/IronToad_UnityProject/Assets/Animations/LightHouseIdle.anim b/IronToad_UnityProject/Assets/Animations/LightHouseIdle.anim index 2e8ae97..f6e50dc 100644 Binary files a/IronToad_UnityProject/Assets/Animations/LightHouseIdle.anim and b/IronToad_UnityProject/Assets/Animations/LightHouseIdle.anim differ diff --git a/IronToad_UnityProject/Assets/Animations/LightHouseSeen.anim b/IronToad_UnityProject/Assets/Animations/LightHouseSeen.anim index 2ffabd6..57f1813 100644 Binary files a/IronToad_UnityProject/Assets/Animations/LightHouseSeen.anim and b/IronToad_UnityProject/Assets/Animations/LightHouseSeen.anim differ diff --git a/IronToad_UnityProject/Assets/Materials/Searchlight.mat b/IronToad_UnityProject/Assets/Materials/Searchlight.mat new file mode 100644 index 0000000..f94deb0 Binary files /dev/null and b/IronToad_UnityProject/Assets/Materials/Searchlight.mat differ diff --git a/IronToad_UnityProject/Assets/Materials/Searchlight.mat.meta b/IronToad_UnityProject/Assets/Materials/Searchlight.mat.meta new file mode 100644 index 0000000..d08625b --- /dev/null +++ b/IronToad_UnityProject/Assets/Materials/Searchlight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 623d70b14a9184af196df92a9955a759 +timeCreated: 1486854885 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/IronToad_UnityProject/Assets/Scripts/LighthouseLanding.cs b/IronToad_UnityProject/Assets/Scripts/LighthouseLanding.cs index 9f549c6..6c6a007 100644 --- a/IronToad_UnityProject/Assets/Scripts/LighthouseLanding.cs +++ b/IronToad_UnityProject/Assets/Scripts/LighthouseLanding.cs @@ -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; + } } diff --git a/IronToad_UnityProject/Assets/_Scenes/IGDA_Lighthouse.unity b/IronToad_UnityProject/Assets/_Scenes/IGDA_Lighthouse.unity index d6b93e0..62f9957 100644 Binary files a/IronToad_UnityProject/Assets/_Scenes/IGDA_Lighthouse.unity and b/IronToad_UnityProject/Assets/_Scenes/IGDA_Lighthouse.unity differ