Update SurvivalIsland
This commit is contained in:
1 parent
a779d1dd79
commit
d33bc2d31c
18 files changed
+192
-5
No files matched your search
@@ -53,7 +53,7 @@ ModelImporter:
|
||||
6400010: wood
|
||||
6400012: wood_001
|
||||
6400014: wood_002
|
||||
7400002: Default Take
|
||||
7400002: idle
|
||||
7400004: idle
|
||||
7400006: dooropen
|
||||
7400008: doorshut
|
||||
@@ -73,16 +73,148 @@ ModelImporter:
|
||||
animationScaleError: .5
|
||||
animationWrapMode: 0
|
||||
extraExposedTransformPaths: []
|
||||
clipAnimations: []
|
||||
clipAnimations:
|
||||
- serializedVersion: 16
|
||||
name: idle
|
||||
takeName: Default Take
|
||||
firstFrame: 1
|
||||
lastFrame: 2
|
||||
wrapMode: 0
|
||||
orientationOffsetY: 0
|
||||
level: 0
|
||||
cycleOffset: 0
|
||||
loop: 0
|
||||
loopTime: 0
|
||||
loopBlend: 0
|
||||
loopBlendOrientation: 0
|
||||
loopBlendPositionY: 0
|
||||
loopBlendPositionXZ: 0
|
||||
keepOriginalOrientation: 0
|
||||
keepOriginalPositionY: 1
|
||||
keepOriginalPositionXZ: 0
|
||||
heightFromFeet: 0
|
||||
mirror: 0
|
||||
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
|
||||
curves: []
|
||||
events: []
|
||||
transformMask:
|
||||
- path:
|
||||
weight: 1
|
||||
- path: dish
|
||||
weight: 1
|
||||
- path: door
|
||||
weight: 1
|
||||
- path: lamp
|
||||
weight: 1
|
||||
- path: outpost
|
||||
weight: 1
|
||||
- path: table
|
||||
weight: 1
|
||||
- path: wood
|
||||
weight: 1
|
||||
- path: wood_001
|
||||
weight: 1
|
||||
- path: wood_002
|
||||
weight: 1
|
||||
maskType: 0
|
||||
maskSource: {instanceID: 0}
|
||||
- serializedVersion: 16
|
||||
name: dooropen
|
||||
takeName: Default Take
|
||||
firstFrame: 1
|
||||
lastFrame: 15
|
||||
wrapMode: 0
|
||||
orientationOffsetY: 0
|
||||
level: 0
|
||||
cycleOffset: 0
|
||||
loop: 0
|
||||
loopTime: 0
|
||||
loopBlend: 0
|
||||
loopBlendOrientation: 0
|
||||
loopBlendPositionY: 0
|
||||
loopBlendPositionXZ: 0
|
||||
keepOriginalOrientation: 0
|
||||
keepOriginalPositionY: 1
|
||||
keepOriginalPositionXZ: 0
|
||||
heightFromFeet: 0
|
||||
mirror: 0
|
||||
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
|
||||
curves: []
|
||||
events: []
|
||||
transformMask:
|
||||
- path:
|
||||
weight: 1
|
||||
- path: dish
|
||||
weight: 1
|
||||
- path: door
|
||||
weight: 1
|
||||
- path: lamp
|
||||
weight: 1
|
||||
- path: outpost
|
||||
weight: 1
|
||||
- path: table
|
||||
weight: 1
|
||||
- path: wood
|
||||
weight: 1
|
||||
- path: wood_001
|
||||
weight: 1
|
||||
- path: wood_002
|
||||
weight: 1
|
||||
maskType: 0
|
||||
maskSource: {instanceID: 0}
|
||||
- serializedVersion: 16
|
||||
name: doorshut
|
||||
takeName: Default Take
|
||||
firstFrame: 16
|
||||
lastFrame: 29
|
||||
wrapMode: 0
|
||||
orientationOffsetY: 0
|
||||
level: 0
|
||||
cycleOffset: 0
|
||||
loop: 0
|
||||
loopTime: 0
|
||||
loopBlend: 0
|
||||
loopBlendOrientation: 0
|
||||
loopBlendPositionY: 0
|
||||
loopBlendPositionXZ: 0
|
||||
keepOriginalOrientation: 0
|
||||
keepOriginalPositionY: 1
|
||||
keepOriginalPositionXZ: 0
|
||||
heightFromFeet: 0
|
||||
mirror: 0
|
||||
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
|
||||
curves: []
|
||||
events: []
|
||||
transformMask:
|
||||
- path:
|
||||
weight: 1
|
||||
- path: dish
|
||||
weight: 1
|
||||
- path: door
|
||||
weight: 1
|
||||
- path: lamp
|
||||
weight: 1
|
||||
- path: outpost
|
||||
weight: 1
|
||||
- path: table
|
||||
weight: 1
|
||||
- path: wood
|
||||
weight: 1
|
||||
- path: wood_001
|
||||
weight: 1
|
||||
- path: wood_002
|
||||
weight: 1
|
||||
maskType: 0
|
||||
maskSource: {instanceID: 0}
|
||||
isReadable: 1
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 1
|
||||
globalScale: 1.5
|
||||
meshCompression: 0
|
||||
addColliders: 1
|
||||
importBlendShapes: 1
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
generateSecondaryUV: 1
|
||||
useFileUnits: 1
|
||||
optimizeMeshForGPU: 1
|
||||
weldVertices: 1
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6e824e5173cad6a409d555b283fc8e25
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
@@ -0,0 +1,42 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class PlayerCollisions : MonoBehaviour {
|
||||
bool doorIsOpen = false;
|
||||
float doorTimer = 0.0f;
|
||||
public float doorOpenTime = 3.0f;
|
||||
public AudioClip doorOpenSound;
|
||||
public AudioClip doorShutSound;
|
||||
|
||||
GameObject currentDoor;
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
if (doorIsOpen) {
|
||||
doorTimer += Time.deltaTime;
|
||||
|
||||
if (doorTimer > doorOpenTime) {
|
||||
Door (doorShutSound, false, "doorshut",currentDoor);
|
||||
doorTimer = 0.0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void OnControllerColliderHit(ControllerColliderHit hit) {
|
||||
if (hit.gameObject.tag == "playerDoor" && doorIsOpen == false) {
|
||||
currentDoor = hit.gameObject;
|
||||
Door (doorOpenSound, true, "dooropen",currentDoor);
|
||||
}
|
||||
}
|
||||
|
||||
void Door(AudioClip aClip, bool openCheck, string animName,GameObject thisDoor) {
|
||||
thisDoor.audio.PlayOneShot (aClip);
|
||||
doorIsOpen = openCheck;
|
||||
thisDoor.transform.parent.animation.Play (animName);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 479fe5da19b4fba4b9ea55d26873d375
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,3 @@
|
||||
Base path: D:/Unity/Editor/Data
|
||||
Pipe name: \\.\pipe\UnityShaderCompiler-1-13164
|
||||
Pipe name: \\.\pipe\UnityShaderCompiler-1-7232
|
||||
Cmd: getPlatforms
|
||||
Binary file not shown.
Reference in new issue
Block a user