Browse Source

fixed lights on mobile

master
KG 7 years ago
parent
commit
07dd79101e
6 changed files with 14 additions and 0 deletions
  1. BIN
      IronToad_UnityProject/Assets/Animations/LightHouseIdle.anim
  2. BIN
      IronToad_UnityProject/Assets/Animations/LightHouseSeen.anim
  3. BIN
      IronToad_UnityProject/Assets/Materials/Searchlight.mat
  4. +8
    -0
      IronToad_UnityProject/Assets/Materials/Searchlight.mat.meta
  5. +6
    -0
      IronToad_UnityProject/Assets/Scripts/LighthouseLanding.cs
  6. BIN
      IronToad_UnityProject/Assets/_Scenes/IGDA_Lighthouse.unity

BIN
IronToad_UnityProject/Assets/Animations/LightHouseIdle.anim View File


BIN
IronToad_UnityProject/Assets/Animations/LightHouseSeen.anim View File


BIN
IronToad_UnityProject/Assets/Materials/Searchlight.mat View File


+ 8
- 0
IronToad_UnityProject/Assets/Materials/Searchlight.mat.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 623d70b14a9184af196df92a9955a759
timeCreated: 1486854885
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

+ 6
- 0
IronToad_UnityProject/Assets/Scripts/LighthouseLanding.cs View File

@ -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;
}
} }

BIN
IronToad_UnityProject/Assets/_Scenes/IGDA_Lighthouse.unity View File


Loading…
Cancel
Save