Xingwei Zhu
3 年前
当前提交
6e1ad2a4
共有 287 个文件被更改,包括 12787 次插入 和 0 次删除
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack.meta
-
42AwesomeUIWidgets/Assets/Scripts/Utils/Example.cs
-
11AwesomeUIWidgets/Assets/Scripts/Utils/Example.cs.meta
-
8AwesomeUIWidgets/Assets/StreamingAssets.meta
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene.meta
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Animations.meta
-
345AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Animations/Door_open.anim
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Animations/Door_open.anim.meta
-
125AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Animations/Doors.controller
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Animations/Doors.controller.meta
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/MiscScripts.meta
-
13AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/MiscScripts/Doors.cs
-
11AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/MiscScripts/Doors.cs.meta
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Models.meta
-
101AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Models/Computer.fbx
-
199AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Models/Computer.fbx.meta
-
515AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Models/OfficeRoom.fbx
-
180AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Models/OfficeRoom.fbx.meta
-
615AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Models/Props.fbx
-
197AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Models/Props.fbx.meta
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs.meta
-
149AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/CeilingLight.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/CeilingLight.prefab.meta
-
98AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Chair.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Chair.prefab.meta
-
260AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Computer.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Computer.prefab.meta
-
643AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Desk.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Desk.prefab.meta
-
263AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Doors.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Doors.prefab.meta
-
99AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/FireExtinguisher.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/FireExtinguisher.prefab.meta
-
98AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Meeting Table.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Meeting Table.prefab.meta
-
98AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/MiniVan.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/MiniVan.prefab.meta
-
818AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/OfficeRoom.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/OfficeRoom.prefab.meta
-
111AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/ParkBench.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/ParkBench.prefab.meta
-
200AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/PottedPlant.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/PottedPlant.prefab.meta
-
85AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Rock1.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Rock1.prefab.meta
-
85AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Rock2.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Rock2.prefab.meta
-
442AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/RoundTable.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/RoundTable.prefab.meta
-
98AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/SoadMachine.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/SoadMachine.prefab.meta
-
100AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/StreetLight.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/StreetLight.prefab.meta
-
85AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Tree_1.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Tree_1.prefab.meta
-
85AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Tree_2.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Tree_2.prefab.meta
-
85AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Tree_3.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/Tree_3.prefab.meta
-
98AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/VendingMachine.prefab
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Prefabs/VendingMachine.prefab.meta
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Scene.meta
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Scene/Demo.meta
-
1001AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Scene/Demo.unity
-
7AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Scene/Demo.unity.meta
-
1001AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Scene/Demo/LightingData.asset
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Scene/Demo/LightingData.asset.meta
-
369AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Scene/Demo/Lightmap-0_comp_dir.png
-
90AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Scene/Demo/Lightmap-0_comp_dir.png.meta
-
1001AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Scene/Demo/Lightmap-0_comp_light.exr
-
90AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Scene/Demo/Lightmap-0_comp_light.exr.meta
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds.meta
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx.meta
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps.meta
-
8AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet.meta
-
367AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet/Carpet-01.wav
-
22AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet/Carpet-01.wav.meta
-
347AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet/Carpet-02.wav
-
22AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet/Carpet-02.wav.meta
-
202AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet/Carpet-03.wav
-
22AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet/Carpet-03.wav.meta
-
396AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet/Carpet-04.wav
-
22AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet/Carpet-04.wav.meta
-
385AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet/Carpet-05.wav
-
22AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet/Carpet-05.wav.meta
-
386AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet/Carpet-06.wav
-
22AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet/Carpet-06.wav.meta
-
371AwesomeUIWidgets/Assets/FirstPersion AIO Pack/DemoScene/Sounds/sfx/Footsteps/Carpet/Carpet-07.wav
|
|||
fileFormatVersion: 2 |
|||
guid: feb21c4fba4834f0691075bb3492de9a |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine; |
|||
|
|||
public class Example : MonoBehaviour |
|||
{ |
|||
private CharacterController controller; |
|||
private Vector3 playerVelocity; |
|||
private bool groundedPlayer; |
|||
private float playerSpeed = 2.0f; |
|||
private float jumpHeight = 1.0f; |
|||
private float gravityValue = -9.81f; |
|||
|
|||
private void Start() |
|||
{ |
|||
controller = gameObject.GetComponent<CharacterController>(); |
|||
} |
|||
|
|||
void Update() |
|||
{ |
|||
groundedPlayer = controller.isGrounded; |
|||
if (groundedPlayer && playerVelocity.y < 0) |
|||
{ |
|||
playerVelocity.y = 0f; |
|||
} |
|||
|
|||
Vector3 move = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical")); |
|||
controller.Move(move * Time.deltaTime * playerSpeed); |
|||
|
|||
if (move != Vector3.zero) |
|||
{ |
|||
gameObject.transform.forward = move; |
|||
} |
|||
|
|||
// Changes the height position of the player..
|
|||
if (Input.GetButtonDown("Jump") && groundedPlayer) |
|||
{ |
|||
playerVelocity.y += Mathf.Sqrt(jumpHeight * -3.0f * gravityValue); |
|||
} |
|||
|
|||
playerVelocity.y += gravityValue * Time.deltaTime; |
|||
controller.Move(playerVelocity * Time.deltaTime); |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 23f31ca20a8b8404886b19ce8e024684 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: a4e96ebf0db5a4406913783c692f8199 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 60c09dae6815f3940bed13c51e86af09 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 7b3781063e44a104aa137b794d853a75 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!74 &7400000 |
|||
AnimationClip: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_Name: Door_open |
|||
serializedVersion: 6 |
|||
m_Legacy: 0 |
|||
m_Compressed: 0 |
|||
m_UseHighQualityCurve: 1 |
|||
m_RotationCurves: [] |
|||
m_CompressedRotationCurves: [] |
|||
m_EulerCurves: |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: |
|||
- serializedVersion: 3 |
|||
time: 0 |
|||
value: {x: 0, y: 0, z: 0} |
|||
inSlope: {x: 0, y: 0, z: 66.683846} |
|||
outSlope: {x: 0, y: 0, z: 66.683846} |
|||
tangentMode: 0 |
|||
weightedMode: 0 |
|||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} |
|||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.06787262} |
|||
- serializedVersion: 3 |
|||
time: 0.75 |
|||
value: {x: 0, y: 0, z: -120} |
|||
inSlope: {x: 0, y: 0, z: 44.75684} |
|||
outSlope: {x: 0, y: 0, z: 44.75684} |
|||
tangentMode: 0 |
|||
weightedMode: 0 |
|||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.29874563} |
|||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
path: Door_Right |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: |
|||
- serializedVersion: 3 |
|||
time: 0 |
|||
value: {x: 0, y: 0, z: 0} |
|||
inSlope: {x: 0, y: 0, z: -50.24549} |
|||
outSlope: {x: 0, y: 0, z: -50.24549} |
|||
tangentMode: 0 |
|||
weightedMode: 0 |
|||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} |
|||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.06500323} |
|||
- serializedVersion: 3 |
|||
time: 0.75 |
|||
value: {x: 0, y: 0, z: 120} |
|||
inSlope: {x: 0, y: 0, z: -73.786446} |
|||
outSlope: {x: 0, y: 0, z: -73.786446} |
|||
tangentMode: 0 |
|||
weightedMode: 0 |
|||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.26715755} |
|||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
path: Door_Left |
|||
m_PositionCurves: [] |
|||
m_ScaleCurves: [] |
|||
m_FloatCurves: [] |
|||
m_PPtrCurves: [] |
|||
m_SampleRate: 60 |
|||
m_WrapMode: 0 |
|||
m_Bounds: |
|||
m_Center: {x: 0, y: 0, z: 0} |
|||
m_Extent: {x: 0, y: 0, z: 0} |
|||
m_ClipBindingConstant: |
|||
genericBindings: |
|||
- serializedVersion: 2 |
|||
path: 3419203043 |
|||
attribute: 4 |
|||
script: {fileID: 0} |
|||
typeID: 4 |
|||
customType: 4 |
|||
isPPtrCurve: 0 |
|||
- serializedVersion: 2 |
|||
path: 385526564 |
|||
attribute: 4 |
|||
script: {fileID: 0} |
|||
typeID: 4 |
|||
customType: 4 |
|||
isPPtrCurve: 0 |
|||
pptrCurveMapping: [] |
|||
m_AnimationClipSettings: |
|||
serializedVersion: 2 |
|||
m_AdditiveReferencePoseClip: {fileID: 0} |
|||
m_AdditiveReferencePoseTime: 0 |
|||
m_StartTime: 0 |
|||
m_StopTime: 0.75 |
|||
m_OrientationOffsetY: 0 |
|||
m_Level: 0 |
|||
m_CycleOffset: 0 |
|||
m_HasAdditiveReferencePose: 0 |
|||
m_LoopTime: 0 |
|||
m_LoopBlend: 0 |
|||
m_LoopBlendOrientation: 0 |
|||
m_LoopBlendPositionY: 0 |
|||
m_LoopBlendPositionXZ: 0 |
|||
m_KeepOriginalOrientation: 0 |
|||
m_KeepOriginalPositionY: 1 |
|||
m_KeepOriginalPositionXZ: 0 |
|||
m_HeightFromFeet: 0 |
|||
m_Mirror: 0 |
|||
m_EditorCurves: |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: |
|||
- serializedVersion: 3 |
|||
time: 0 |
|||
value: 0 |
|||
inSlope: 0 |
|||
outSlope: 0 |
|||
tangentMode: 136 |
|||
weightedMode: 0 |
|||
inWeight: 0.33333334 |
|||
outWeight: 0.33333334 |
|||
- serializedVersion: 3 |
|||
time: 0.75 |
|||
value: 0 |
|||
inSlope: 0 |
|||
outSlope: 0 |
|||
tangentMode: 136 |
|||
weightedMode: 0 |
|||
inWeight: 0.33333334 |
|||
outWeight: 0.33333334 |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
attribute: localEulerAnglesRaw.x |
|||
path: Door_Right |
|||
classID: 4 |
|||
script: {fileID: 0} |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: |
|||
- serializedVersion: 3 |
|||
time: 0 |
|||
value: 0 |
|||
inSlope: 0 |
|||
outSlope: 0 |
|||
tangentMode: 136 |
|||
weightedMode: 0 |
|||
inWeight: 0.33333334 |
|||
outWeight: 0.33333334 |
|||
- serializedVersion: 3 |
|||
time: 0.75 |
|||
value: 0 |
|||
inSlope: 0 |
|||
outSlope: 0 |
|||
tangentMode: 136 |
|||
weightedMode: 0 |
|||
inWeight: 0.33333334 |
|||
outWeight: 0.33333334 |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
attribute: localEulerAnglesRaw.y |
|||
path: Door_Right |
|||
classID: 4 |
|||
script: {fileID: 0} |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: |
|||
- serializedVersion: 3 |
|||
time: 0 |
|||
value: 0 |
|||
inSlope: 66.683846 |
|||
outSlope: 66.683846 |
|||
tangentMode: 0 |
|||
weightedMode: 0 |
|||
inWeight: 0.33333334 |
|||
outWeight: 0.06787262 |
|||
- serializedVersion: 3 |
|||
time: 0.75 |
|||
value: -120 |
|||
inSlope: 44.75684 |
|||
outSlope: 44.75684 |
|||
tangentMode: 0 |
|||
weightedMode: 0 |
|||
inWeight: 0.29874563 |
|||
outWeight: 0.33333334 |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
attribute: localEulerAnglesRaw.z |
|||
path: Door_Right |
|||
classID: 4 |
|||
script: {fileID: 0} |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: |
|||
- serializedVersion: 3 |
|||
time: 0 |
|||
value: 0 |
|||
inSlope: 0 |
|||
outSlope: 0 |
|||
tangentMode: 136 |
|||
weightedMode: 0 |
|||
inWeight: 0.33333334 |
|||
outWeight: 0.33333334 |
|||
- serializedVersion: 3 |
|||
time: 0.75 |
|||
value: 0 |
|||
inSlope: 0 |
|||
outSlope: 0 |
|||
tangentMode: 136 |
|||
weightedMode: 0 |
|||
inWeight: 0.33333334 |
|||
outWeight: 0.33333334 |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
attribute: localEulerAnglesRaw.x |
|||
path: Door_Left |
|||
classID: 4 |
|||
script: {fileID: 0} |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: |
|||
- serializedVersion: 3 |
|||
time: 0 |
|||
value: 0 |
|||
inSlope: 0 |
|||
outSlope: 0 |
|||
tangentMode: 136 |
|||
weightedMode: 0 |
|||
inWeight: 0.33333334 |
|||
outWeight: 0.33333334 |
|||
- serializedVersion: 3 |
|||
time: 0.75 |
|||
value: 0 |
|||
inSlope: 0 |
|||
outSlope: 0 |
|||
tangentMode: 136 |
|||
weightedMode: 0 |
|||
inWeight: 0.33333334 |
|||
outWeight: 0.33333334 |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
attribute: localEulerAnglesRaw.y |
|||
path: Door_Left |
|||
classID: 4 |
|||
script: {fileID: 0} |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: |
|||
- serializedVersion: 3 |
|||
time: 0 |
|||
value: 0 |
|||
inSlope: -50.24549 |
|||
outSlope: -50.24549 |
|||
tangentMode: 0 |
|||
weightedMode: 0 |
|||
inWeight: 0.33333334 |
|||
outWeight: 0.06500323 |
|||
- serializedVersion: 3 |
|||
time: 0.75 |
|||
value: 120 |
|||
inSlope: -73.786446 |
|||
outSlope: -73.786446 |
|||
tangentMode: 0 |
|||
weightedMode: 0 |
|||
inWeight: 0.26715755 |
|||
outWeight: 0.33333334 |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
attribute: localEulerAnglesRaw.z |
|||
path: Door_Left |
|||
classID: 4 |
|||
script: {fileID: 0} |
|||
m_EulerEditorCurves: |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: [] |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
attribute: m_LocalEulerAngles.z |
|||
path: Door_Left |
|||
classID: 4 |
|||
script: {fileID: 0} |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: [] |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
attribute: m_LocalEulerAngles.y |
|||
path: Door_Left |
|||
classID: 4 |
|||
script: {fileID: 0} |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: [] |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
attribute: m_LocalEulerAngles.x |
|||
path: Door_Left |
|||
classID: 4 |
|||
script: {fileID: 0} |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: [] |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
attribute: m_LocalEulerAngles.x |
|||
path: Door_Right |
|||
classID: 4 |
|||
script: {fileID: 0} |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: [] |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
attribute: m_LocalEulerAngles.y |
|||
path: Door_Right |
|||
classID: 4 |
|||
script: {fileID: 0} |
|||
- curve: |
|||
serializedVersion: 2 |
|||
m_Curve: [] |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
attribute: m_LocalEulerAngles.z |
|||
path: Door_Right |
|||
classID: 4 |
|||
script: {fileID: 0} |
|||
m_HasGenericRootTransform: 0 |
|||
m_HasMotionFloatCurves: 0 |
|||
m_GenerateMotionCurves: 0 |
|||
m_Events: [] |
|
|||
fileFormatVersion: 2 |
|||
guid: 83d969b31a4324149948f06ce452a8d1 |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 7400000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!91 &9100000 |
|||
AnimatorController: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_Name: Doors |
|||
serializedVersion: 5 |
|||
m_AnimatorParameters: [] |
|||
m_AnimatorLayers: |
|||
- serializedVersion: 5 |
|||
m_Name: Base Layer |
|||
m_StateMachine: {fileID: 1107452533938018654} |
|||
m_Mask: {fileID: 0} |
|||
m_Motions: [] |
|||
m_Behaviours: [] |
|||
m_BlendingMode: 0 |
|||
m_SyncedLayerIndex: -1 |
|||
m_DefaultWeight: 0 |
|||
m_IKPass: 0 |
|||
m_SyncedLayerAffectsTiming: 0 |
|||
m_Controller: {fileID: 9100000} |
|||
--- !u!1102 &1102159065629099980 |
|||
AnimatorState: |
|||
serializedVersion: 5 |
|||
m_ObjectHideFlags: 1 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_Name: Door_open |
|||
m_Speed: 1 |
|||
m_CycleOffset: 0 |
|||
m_Transitions: [] |
|||
m_StateMachineBehaviours: [] |
|||
m_Position: {x: 50, y: 50, z: 0} |
|||
m_IKOnFeet: 0 |
|||
m_WriteDefaultValues: 1 |
|||
m_Mirror: 0 |
|||
m_SpeedParameterActive: 0 |
|||
m_MirrorParameterActive: 0 |
|||
m_CycleOffsetParameterActive: 0 |
|||
m_TimeParameterActive: 0 |
|||
m_Motion: {fileID: 7400000, guid: 83d969b31a4324149948f06ce452a8d1, type: 2} |
|||
m_Tag: |
|||
m_SpeedParameter: |
|||
m_MirrorParameter: |
|||
m_CycleOffsetParameter: |
|||
m_TimeParameter: |
|||
--- !u!1102 &1102379927275540972 |
|||
AnimatorState: |
|||
serializedVersion: 5 |
|||
m_ObjectHideFlags: 1 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_Name: New State |
|||
m_Speed: 1 |
|||
m_CycleOffset: 0 |
|||
m_Transitions: [] |
|||
m_StateMachineBehaviours: [] |
|||
m_Position: {x: 50, y: 50, z: 0} |
|||
m_IKOnFeet: 0 |
|||
m_WriteDefaultValues: 1 |
|||
m_Mirror: 0 |
|||
m_SpeedParameterActive: 0 |
|||
m_MirrorParameterActive: 0 |
|||
m_CycleOffsetParameterActive: 0 |
|||
m_TimeParameterActive: 0 |
|||
m_Motion: {fileID: 0} |
|||
m_Tag: |
|||
m_SpeedParameter: |
|||
m_MirrorParameter: |
|||
m_CycleOffsetParameter: |
|||
m_TimeParameter: |
|||
--- !u!1102 &1102971552595469800 |
|||
AnimatorState: |
|||
serializedVersion: 5 |
|||
m_ObjectHideFlags: 1 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_Name: New State 0 |
|||
m_Speed: 1 |
|||
m_CycleOffset: 0 |
|||
m_Transitions: [] |
|||
m_StateMachineBehaviours: [] |
|||
m_Position: {x: 50, y: 50, z: 0} |
|||
m_IKOnFeet: 0 |
|||
m_WriteDefaultValues: 1 |
|||
m_Mirror: 0 |
|||
m_SpeedParameterActive: 0 |
|||
m_MirrorParameterActive: 0 |
|||
m_CycleOffsetParameterActive: 0 |
|||
m_TimeParameterActive: 0 |
|||
m_Motion: {fileID: 0} |
|||
m_Tag: |
|||
m_SpeedParameter: |
|||
m_MirrorParameter: |
|||
m_CycleOffsetParameter: |
|||
m_TimeParameter: |
|||
--- !u!1107 &1107452533938018654 |
|||
AnimatorStateMachine: |
|||
serializedVersion: 5 |
|||
m_ObjectHideFlags: 1 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_Name: Base Layer |
|||
m_ChildStates: |
|||
- serializedVersion: 1 |
|||
m_State: {fileID: 1102159065629099980} |
|||
m_Position: {x: 252, y: 0, z: 0} |
|||
- serializedVersion: 1 |
|||
m_State: {fileID: 1102379927275540972} |
|||
m_Position: {x: -7593.037, y: -2081.1719, z: 0} |
|||
- serializedVersion: 1 |
|||
m_State: {fileID: 1102971552595469800} |
|||
m_Position: {x: 240, y: 120, z: 0} |
|||
m_ChildStateMachines: [] |
|||
m_AnyStateTransitions: [] |
|||
m_EntryTransitions: [] |
|||
m_StateMachineTransitions: {} |
|||
m_StateMachineBehaviours: [] |
|||
m_AnyStatePosition: {x: 50, y: 20, z: 0} |
|||
m_EntryPosition: {x: 50, y: 120, z: 0} |
|||
m_ExitPosition: {x: 800, y: 120, z: 0} |
|||
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} |
|||
m_DefaultState: {fileID: 1102971552595469800} |
|
|||
fileFormatVersion: 2 |
|||
guid: 67fd6f4143bc1a64dab50006bed9d277 |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 9100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 63ad624476d262a4f9700aaf0d2f7f6d |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
|
|||
public class Doors : MonoBehaviour { |
|||
|
|||
void OnTriggerEnter(Collider coll){ |
|||
if(coll.tag=="Player"){ |
|||
GetComponent<Animator>().Play("Door_open"); |
|||
this.enabled=false; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 447ad0207f6dcdf4fa72bd55414e318e |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 45f49fa667435f448a023129a090c506 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
Kaydara FBX Binary � _ FBXHeaderExtension\ FBXHeaderVersionI� x |
|||
FBXVersionI� � EncryptionTypeI � CreationTimeStamp� VersionI� � YearI� � MonthI DayI ' HourI ? MinuteI W SecondI4 t MillisecondI� � 4 CreatorS/ Blender (stable FBX IO) - 2.79 (sub 0) - 3.7.17R ' |