Sagittaeri 8 years ago
parent
commit
497ca19552
7 changed files with 108 additions and 4 deletions
  1. +82
    -0
      IronToad_UnityProject/Assets/Art/Models/catapult_rock.OBJ.meta
  2. +6
    -2
      IronToad_UnityProject/Assets/Scripts/HidingSpot.cs
  3. +2
    -2
      IronToad_UnityProject/Assets/Scripts/Searchlight.cs
  4. +9
    -0
      IronToad_UnityProject/Assets/Textures.meta
  5. +9
    -0
      IronToad_UnityProject/Assets/_Scenes/GreyBox_Prototype.meta
  6. BIN
      IronToad_UnityProject/Assets/_Scenes/GreyBox_Prototype.unity
  7. BIN
      IronToad_UnityProject/Assets/water/Water.mat

+ 82
- 0
IronToad_UnityProject/Assets/Art/Models/catapult_rock.OBJ.meta View File

@ -0,0 +1,82 @@
fileFormatVersion: 2
guid: ab392ccfd0fbdbb419b0edd49d9ffe20
timeCreated: 1485052411
licenseType: Free
ModelImporter:
serializedVersion: 19
fileIDToRecycleName:
100000: Group48238
100002: //RootNode
400000: Group48238
400002: //RootNode
2300000: Group48238
3300000: Group48238
4300000: Group48238
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: 0.0666
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:

+ 6
- 2
IronToad_UnityProject/Assets/Scripts/HidingSpot.cs View File

@ -17,13 +17,17 @@ public class HidingSpot : MonoBehaviour {
}
void OnTriggerEnter(Collider other) {
if (other.gameObject.CompareTag("Player"))
if (other.gameObject.CompareTag("Player")) {
Searchlight.playerHidden = true;
Debug.Log("player here");
}
}
void OnTriggerExit(Collider other) {
if (other.gameObject.CompareTag("Player"))
if (other.gameObject.CompareTag("Player")) {
Searchlight.playerHidden = false;
Debug.Log("player exit");
}
}
}

+ 2
- 2
IronToad_UnityProject/Assets/Scripts/Searchlight.cs View File

@ -47,7 +47,7 @@ public class Searchlight : MonoBehaviour
void OnTriggerEnter(Collider other)
{
if (other.tag != "Player")
if (other.tag != "Player" || playerHidden )
return;
chased = other;
isTriggering = true;
@ -64,7 +64,7 @@ public class Searchlight : MonoBehaviour
void OnTriggerExit(Collider other)
{
if (other.tag != "Player" || playerHidden)
if (other.tag != "Player" )
return;
isTriggering = false;
if (state == SearchState.Chasing && !isTriggeringAtLeastOne())

+ 9
- 0
IronToad_UnityProject/Assets/Textures.meta View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 2a6e699820a38a544acfc0015eb679a2
folderAsset: yes
timeCreated: 1484972317
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

+ 9
- 0
IronToad_UnityProject/Assets/_Scenes/GreyBox_Prototype.meta View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 338533d5d159c00478a9fb5321b7d922
folderAsset: yes
timeCreated: 1485007190
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

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


BIN
IronToad_UnityProject/Assets/water/Water.mat View File


Loading…
Cancel
Save