@ -1,82 +0,0 @@ | |||
fileFormatVersion: 2 | |||
guid: 37549450629db464abffe54861590cf3 | |||
timeCreated: 1485008673 | |||
licenseType: Free | |||
ModelImporter: | |||
serializedVersion: 19 | |||
fileIDToRecycleName: | |||
100000: pCylinder3 | |||
100002: //RootNode | |||
400000: pCylinder3 | |||
400002: //RootNode | |||
2300000: pCylinder3 | |||
3300000: pCylinder3 | |||
4300000: pCylinder3 | |||
materials: | |||
importMaterials: 1 | |||
materialName: 0 | |||
materialSearch: 1 | |||
animations: | |||
legacyGenerateAnimations: 4 | |||
bakeSimulation: 0 | |||
resampleCurves: 1 | |||
optimizeGameObjects: 0 | |||
motionNodeName: | |||
animationImportErrors: | |||
animationImportWarnings: | |||
animationRetargetingWarnings: | |||
animationDoRetargetingWarnings: 0 | |||
animationCompression: 1 | |||
animationRotationError: 0.5 | |||
animationPositionError: 0.5 | |||
animationScaleError: 0.5 | |||
animationWrapMode: 0 | |||
extraExposedTransformPaths: [] | |||
clipAnimations: [] | |||
isReadable: 1 | |||
meshes: | |||
lODScreenPercentages: [] | |||
globalScale: 1 | |||
meshCompression: 0 | |||
addColliders: 0 | |||
importBlendShapes: 1 | |||
swapUVChannels: 0 | |||
generateSecondaryUV: 0 | |||
useFileUnits: 1 | |||
optimizeMeshForGPU: 1 | |||
keepQuads: 0 | |||
weldVertices: 1 | |||
secondaryUVAngleDistortion: 8 | |||
secondaryUVAreaDistortion: 15.000001 | |||
secondaryUVHardAngle: 88 | |||
secondaryUVPackMargin: 4 | |||
useFileScale: 1 | |||
tangentSpace: | |||
normalSmoothAngle: 60 | |||
normalImportMode: 0 | |||
tangentImportMode: 3 | |||
importAnimation: 1 | |||
copyAvatar: 0 | |||
humanDescription: | |||
serializedVersion: 2 | |||
human: [] | |||
skeleton: [] | |||
armTwist: 0.5 | |||
foreArmTwist: 0.5 | |||
upperLegTwist: 0.5 | |||
legTwist: 0.5 | |||
armStretch: 0.05 | |||
legStretch: 0.05 | |||
feetSpacing: 0 | |||
rootMotionBoneName: | |||
rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1} | |||
hasTranslationDoF: 0 | |||
hasExtraRoot: 0 | |||
skeletonHasParents: 1 | |||
lastHumanDescriptionAvatarSource: {instanceID: 0} | |||
animationType: 0 | |||
humanoidOversampling: 1 | |||
additionalBone: 0 | |||
userData: | |||
assetBundleName: | |||
assetBundleVariant: |
@ -0,0 +1,8 @@ | |||
fileFormatVersion: 2 | |||
guid: 785489b73767a41c49ff69b387dd4ddc | |||
timeCreated: 1485044195 | |||
licenseType: Pro | |||
NativeFormatImporter: | |||
userData: | |||
assetBundleName: | |||
assetBundleVariant: |
@ -0,0 +1,49 @@ | |||
using System.Collections; | |||
using System.Collections.Generic; | |||
using UnityEngine; | |||
public class VictoryScript : MonoBehaviour | |||
{ | |||
private bool isTriggering = false; | |||
void OnTriggerEnter(Collider other) | |||
{ | |||
if (other.tag != "Player") | |||
return; | |||
if (Searchlight.state == Searchlight.SearchState.Chasing) | |||
return; | |||
if (isTriggering) | |||
return; | |||
isTriggering = true; | |||
NotificationServer.notify("show VictoryButton"); | |||
} | |||
void OnTriggerExit(Collider other) | |||
{ | |||
if (other.tag != "Player") | |||
return; | |||
if (!isTriggering) | |||
return; | |||
isTriggering = false; | |||
NotificationServer.notify("hide VictoryButton"); | |||
} | |||
void searchlightStateChanged() | |||
{ | |||
if (isTriggering && Searchlight.state == Searchlight.SearchState.Chasing) | |||
{ | |||
isTriggering = false; | |||
NotificationServer.notify("hide VictoryButton"); | |||
} | |||
} | |||
public void victoryClicked() | |||
{ | |||
NotificationServer.notify("fade bgm"); | |||
NotificationServer.notify("play sfx", "shipSpotted_2:0.5"); | |||
NotificationServer.notify("show VictoryPanel"); | |||
NotificationServer.notify("hide GameUI"); | |||
} | |||
} |
@ -0,0 +1,12 @@ | |||
fileFormatVersion: 2 | |||
guid: 7570fcc436e7c471f9503908ba3e4e97 | |||
timeCreated: 1486802138 | |||
licenseType: Free | |||
MonoImporter: | |||
serializedVersion: 2 | |||
defaultReferences: [] | |||
executionOrder: 0 | |||
icon: {instanceID: 0} | |||
userData: | |||
assetBundleName: | |||
assetBundleVariant: |
@ -1,9 +0,0 @@ | |||
fileFormatVersion: 2 | |||
guid: 844c4f25011b45348a5db5bc5b4f956e | |||
folderAsset: yes | |||
timeCreated: 1485037848 | |||
licenseType: Pro | |||
DefaultImporter: | |||
userData: | |||
assetBundleName: | |||
assetBundleVariant: |
@ -1,8 +0,0 @@ | |||
fileFormatVersion: 2 | |||
guid: 4f48e22f51b6449849bfe949e93bd014 | |||
timeCreated: 1485054810 | |||
licenseType: Free | |||
DefaultImporter: | |||
userData: | |||
assetBundleName: | |||
assetBundleVariant: |
@ -1,9 +0,0 @@ | |||
fileFormatVersion: 2 | |||
guid: e3b0c439ea6f28c4fb3ce6bc58682b6b | |||
folderAsset: yes | |||
timeCreated: 1485052873 | |||
licenseType: Pro | |||
DefaultImporter: | |||
userData: | |||
assetBundleName: | |||
assetBundleVariant: |
@ -1,8 +0,0 @@ | |||
fileFormatVersion: 2 | |||
guid: c4dadf9d2dcd00b41a75fe2f9e83af94 | |||
timeCreated: 1485059760 | |||
licenseType: Free | |||
DefaultImporter: | |||
userData: | |||
assetBundleName: | |||
assetBundleVariant: |