mirror of
https://github.com/ConjureETS/OuijaMTLGJ2016.git
synced 2026-03-24 02:01:06 +00:00
Merge branch 'master' of github.com:ConjureETS/OuijaMTLGJ2016
This commit is contained in:
commit
e60530c787
37
Assets/ControllerMapper.asset
Normal file
37
Assets/ControllerMapper.asset
Normal file
@ -0,0 +1,37 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 539aad81a9327404e8e67bb53c540d91, type: 3}
|
||||
m_Name: ControllerMapper
|
||||
m_EditorClassIdentifier:
|
||||
Contexts:
|
||||
- name: Normal
|
||||
ButtonActions:
|
||||
- name: Dash
|
||||
XboxButtons: 02000000
|
||||
KeyboardKeys:
|
||||
AxisRanges:
|
||||
- name: MoveLeft
|
||||
Axis: 00000000
|
||||
KeyboardKeys: 00000000
|
||||
- name: MoveRight
|
||||
Axis: 01000000
|
||||
KeyboardKeys:
|
||||
- name: MoveForward
|
||||
Axis: 02000000
|
||||
KeyboardKeys:
|
||||
- name: MoveBackward
|
||||
Axis: 03000000
|
||||
KeyboardKeys:
|
||||
ButtonStates: []
|
||||
- name: Dashing
|
||||
ButtonActions: []
|
||||
AxisRanges: []
|
||||
ButtonStates: []
|
||||
8
Assets/ControllerMapper.asset.meta
Normal file
8
Assets/ControllerMapper.asset.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c1d726eedc374be4fb2ebc66c9c5a740
|
||||
timeCreated: 1454150249
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Editor.meta
Normal file
9
Assets/Editor.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2ca10ed205191f6469b088b753449e2e
|
||||
folderAsset: yes
|
||||
timeCreated: 1436647855
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Editor/InputHandler.meta
Normal file
9
Assets/Editor/InputHandler.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f51e978f4624ae4794201e436ec39e5
|
||||
folderAsset: yes
|
||||
timeCreated: 1435023323
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
21
Assets/Editor/InputHandler/CreateControllerMapperAsset.cs
Normal file
21
Assets/Editor/InputHandler/CreateControllerMapperAsset.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using UnityEditor;
|
||||
|
||||
namespace InputHandler
|
||||
{
|
||||
public class CreateControllerMapperAsset
|
||||
{
|
||||
[MenuItem("InputHandler/Create/ControllerMapper")]
|
||||
public static void CreateInputAsset()
|
||||
{
|
||||
ControllerMapperAsset asset = ControllerMapperAsset.CreateInstance<ControllerMapperAsset>();
|
||||
AssetDatabase.CreateAsset(asset, "Assets/ControllerMapper.asset");
|
||||
AssetDatabase.SaveAssets();
|
||||
|
||||
EditorUtility.FocusProjectWindow();
|
||||
|
||||
Selection.activeObject = asset;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 37a276da6a074c149a173094095c1e94
|
||||
timeCreated: 1434958498
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Plugins.meta
Normal file
9
Assets/Plugins.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f50b7a79572e8f448b6b0bbc449a466c
|
||||
folderAsset: yes
|
||||
timeCreated: 1434857820
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Plugins/x86.meta
Normal file
9
Assets/Plugins/x86.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d5a17b4fbbb9c794fb163e397e963e00
|
||||
folderAsset: yes
|
||||
timeCreated: 1434857820
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/x86/XInputDotNetPure.dll
Normal file
BIN
Assets/Plugins/x86/XInputDotNetPure.dll
Normal file
Binary file not shown.
14
Assets/Plugins/x86/XInputDotNetPure.dll.meta
Normal file
14
Assets/Plugins/x86/XInputDotNetPure.dll.meta
Normal file
@ -0,0 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c4e96c35cd46f534592ecc07b608e110
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
platformData:
|
||||
Any:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/x86/XInputInterface.dll
Normal file
BIN
Assets/Plugins/x86/XInputInterface.dll
Normal file
Binary file not shown.
6
Assets/Plugins/x86/XInputInterface.dll.meta
Normal file
6
Assets/Plugins/x86/XInputInterface.dll.meta
Normal file
@ -0,0 +1,6 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bbceb1b00a2e35849a7020d601589c40
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Plugins/x86_64.meta
Normal file
9
Assets/Plugins/x86_64.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 19f56f3d79f95da47ae4895f7588c43b
|
||||
folderAsset: yes
|
||||
timeCreated: 1434857820
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/x86_64/XInputDotNetPure.dll
Normal file
BIN
Assets/Plugins/x86_64/XInputDotNetPure.dll
Normal file
Binary file not shown.
14
Assets/Plugins/x86_64/XInputDotNetPure.dll.meta
Normal file
14
Assets/Plugins/x86_64/XInputDotNetPure.dll.meta
Normal file
@ -0,0 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b9f05caccaeb48146ae995df3ed431ab
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
platformData:
|
||||
Any:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Plugins/x86_64/XInputInterface.dll
Normal file
BIN
Assets/Plugins/x86_64/XInputInterface.dll
Normal file
Binary file not shown.
6
Assets/Plugins/x86_64/XInputInterface.dll.meta
Normal file
6
Assets/Plugins/x86_64/XInputInterface.dll.meta
Normal file
@ -0,0 +1,6 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ea895df4f09804d47ac0a43ce22418cb
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/UnityVS.meta
Normal file
9
Assets/UnityVS.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 02fe78e962405814a83b8ba6c9471d32
|
||||
folderAsset: yes
|
||||
timeCreated: 1434850683
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/UnityVS/Editor.meta
Normal file
9
Assets/UnityVS/Editor.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6e71a3e2fb5854e43823a9da25b68e21
|
||||
folderAsset: yes
|
||||
timeCreated: 1434850683
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,7 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: de5c68350bb169f469910678ef385a31
|
||||
guid: 1a5a66ccc7886c14c853df3dcd5b11c6
|
||||
folderAsset: yes
|
||||
timeCreated: 1454165487
|
||||
timeCreated: 1454164396
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
|
||||
@ -32,6 +32,12 @@ AnimatorController:
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 9100000}
|
||||
- m_Name: Dash
|
||||
m_Type: 9
|
||||
m_DefaultFloat: 0
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 9100000}
|
||||
m_AnimatorLayers:
|
||||
- serializedVersion: 5
|
||||
m_Name: Base Layer
|
||||
@ -145,30 +151,6 @@ AnimatorStateTransition:
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!1101 &110131827
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 3
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 4
|
||||
m_ConditionEvent: Walk
|
||||
m_EventTreshold: .100000001
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 110233808}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: .466804981
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: .899999976
|
||||
m_HasExitTime: 0
|
||||
m_HasFixedDuration: 0
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!1101 &110152758
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 3
|
||||
@ -221,18 +203,18 @@ AnimatorStateTransition:
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 3
|
||||
m_ConditionEvent: Run
|
||||
m_EventTreshold: .100000001
|
||||
- m_ConditionMode: 1
|
||||
m_ConditionEvent: Dash
|
||||
m_EventTreshold: 0
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 110291569}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: .246981323
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: .899999976
|
||||
m_TransitionDuration: .366818249
|
||||
m_TransitionOffset: .177504003
|
||||
m_ExitTime: .0885026306
|
||||
m_HasExitTime: 0
|
||||
m_HasFixedDuration: 0
|
||||
m_InterruptionSource: 0
|
||||
@ -259,27 +241,75 @@ AnimatorStateTransition:
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!1101 &110166621
|
||||
--- !u!1101 &110164332
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 3
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 1
|
||||
m_ConditionEvent: Dash
|
||||
m_EventTreshold: 0
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 110291569}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: .111634426
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: 3.80561804e-09
|
||||
m_HasExitTime: 0
|
||||
m_HasFixedDuration: 0
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 0
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!1101 &110169686
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 4
|
||||
m_ConditionEvent: Run
|
||||
m_EventTreshold: .100000001
|
||||
m_ConditionEvent: Walk
|
||||
m_EventTreshold: .200000003
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 110200000}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: .25723207
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: .521006107
|
||||
m_HasExitTime: 1
|
||||
m_HasFixedDuration: 1
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!1101 &110182386
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 3
|
||||
m_ConditionEvent: Walk
|
||||
m_EventTreshold: .200000003
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 110233808}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: .421348363
|
||||
m_TransitionDuration: .25
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: .899999976
|
||||
m_HasExitTime: 0
|
||||
m_HasFixedDuration: 0
|
||||
m_ExitTime: .533195019
|
||||
m_HasExitTime: 1
|
||||
m_HasFixedDuration: 1
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
@ -317,6 +347,7 @@ AnimatorState:
|
||||
m_Speed: 1
|
||||
m_CycleOffset: 0
|
||||
m_Transitions:
|
||||
- {fileID: 110164332}
|
||||
- {fileID: 110100000}
|
||||
m_StateMachineBehaviours: []
|
||||
m_Position: {x: 36, y: 156, z: 0}
|
||||
@ -432,13 +463,13 @@ AnimatorState:
|
||||
m_ObjectHideFlags: 3
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: Running
|
||||
m_Speed: 1
|
||||
m_Name: Dashing
|
||||
m_Speed: 1.20000005
|
||||
m_CycleOffset: 0
|
||||
m_Transitions:
|
||||
- {fileID: 110166621}
|
||||
- {fileID: 110131827}
|
||||
- {fileID: 110152758}
|
||||
- {fileID: 110169686}
|
||||
- {fileID: 110182386}
|
||||
m_StateMachineBehaviours: []
|
||||
m_Position: {x: 36, y: -72, z: 0}
|
||||
m_IKOnFeet: 1
|
||||
@ -462,13 +493,13 @@ AnimatorStateMachine:
|
||||
m_ChildStates:
|
||||
- serializedVersion: 1
|
||||
m_State: {fileID: 110200000}
|
||||
m_Position: {x: 36, y: 156, z: 0}
|
||||
m_Position: {x: 360, y: 156, z: 0}
|
||||
- serializedVersion: 1
|
||||
m_State: {fileID: 110291569}
|
||||
m_Position: {x: 36, y: -72, z: 0}
|
||||
- serializedVersion: 1
|
||||
m_State: {fileID: 110233808}
|
||||
m_Position: {x: 36, y: 48, z: 0}
|
||||
m_Position: {x: 36, y: 36, z: 0}
|
||||
- serializedVersion: 1
|
||||
m_State: {fileID: 110205513}
|
||||
m_Position: {x: 336, y: -72, z: 0}
|
||||
@ -482,3 +513,21 @@ AnimatorStateMachine:
|
||||
m_ExitPosition: {x: 800, y: 120, z: 0}
|
||||
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
||||
m_DefaultState: {fileID: 110200000}
|
||||
--- !u!1107 &110701438
|
||||
AnimatorStateMachine:
|
||||
serializedVersion: 5
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: New Layer
|
||||
m_ChildStates: []
|
||||
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: 0}
|
||||
|
||||
@ -10,6 +10,7 @@ function Start () {
|
||||
}
|
||||
|
||||
function Update () {
|
||||
/*
|
||||
v=Input.GetAxis("Vertical"+playerNumber);
|
||||
h=Input.GetAxis("Horizontal"+playerNumber);
|
||||
if (animator.GetFloat("Run")==0.2){
|
||||
@ -17,22 +18,24 @@ function Update () {
|
||||
animator.SetBool("Jump",true);
|
||||
}
|
||||
}
|
||||
Sprinting();
|
||||
Sprinting();*/
|
||||
|
||||
}
|
||||
|
||||
function FixedUpdate (){
|
||||
/*
|
||||
animator.SetFloat("Walk",v);
|
||||
animator.SetFloat("Run",run);
|
||||
animator.SetFloat("Turn",h);
|
||||
animator.SetFloat("Turn",h);*/
|
||||
}
|
||||
|
||||
function Sprinting(){
|
||||
/*
|
||||
if (Input.GetKey(KeyCode.LeftShift)){
|
||||
run=0.2;
|
||||
}
|
||||
else
|
||||
{
|
||||
run=0.0;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
@ -1,7 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f61eba6cd49f079439837e58225f4f74
|
||||
guid: d46e4b1657db2724cac4c064621fe701
|
||||
folderAsset: yes
|
||||
timeCreated: 1454165488
|
||||
timeCreated: 1454164396
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
|
||||
3548
Assets/prefabs/Character.prefab
Normal file
3548
Assets/prefabs/Character.prefab
Normal file
File diff suppressed because it is too large
Load Diff
8
Assets/prefabs/Character.prefab.meta
Normal file
8
Assets/prefabs/Character.prefab.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d9aa98efb3480c8438047a4565cd1893
|
||||
timeCreated: 1454164878
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
54
Assets/prefabs/CharacterController.prefab
Normal file
54
Assets/prefabs/CharacterController.prefab
Normal file
@ -0,0 +1,54 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &117118
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 422570}
|
||||
- 114: {fileID: 11495336}
|
||||
m_Layer: 0
|
||||
m_Name: CharacterController
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &422570
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 117118}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: .666631162, y: .145443216, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
--- !u!114 &11495336
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 117118}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8cb928dc47bb84343830c964dd63c454, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
character: {fileID: 0}
|
||||
playerNumber: 0
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 117118}
|
||||
m_IsPrefabParent: 1
|
||||
8
Assets/prefabs/CharacterController.prefab.meta
Normal file
8
Assets/prefabs/CharacterController.prefab.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0a3031db8d5701f47984a4267336a83f
|
||||
timeCreated: 1454165045
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/prefabs/Materials.meta
Normal file
9
Assets/prefabs/Materials.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ea122c6736d10ef459ebf219d782f03e
|
||||
folderAsset: yes
|
||||
timeCreated: 1454175515
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
138
Assets/prefabs/Materials/None.mat
Normal file
138
Assets/prefabs/Materials/None.mat
Normal file
@ -0,0 +1,138 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: None
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 5
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
data:
|
||||
first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _BumpMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _DetailNormalMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _ParallaxMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _OcclusionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _EmissionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _DetailMask
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _DetailAlbedoMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _MetallicGlossMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
data:
|
||||
first:
|
||||
name: _SrcBlend
|
||||
second: 1
|
||||
data:
|
||||
first:
|
||||
name: _DstBlend
|
||||
second: 0
|
||||
data:
|
||||
first:
|
||||
name: _Cutoff
|
||||
second: .5
|
||||
data:
|
||||
first:
|
||||
name: _Parallax
|
||||
second: .0199999996
|
||||
data:
|
||||
first:
|
||||
name: _ZWrite
|
||||
second: 1
|
||||
data:
|
||||
first:
|
||||
name: _Glossiness
|
||||
second: .5
|
||||
data:
|
||||
first:
|
||||
name: _BumpScale
|
||||
second: 1
|
||||
data:
|
||||
first:
|
||||
name: _OcclusionStrength
|
||||
second: 1
|
||||
data:
|
||||
first:
|
||||
name: _DetailNormalMapScale
|
||||
second: 1
|
||||
data:
|
||||
first:
|
||||
name: _UVSec
|
||||
second: 0
|
||||
data:
|
||||
first:
|
||||
name: _Mode
|
||||
second: 0
|
||||
data:
|
||||
first:
|
||||
name: _Metallic
|
||||
second: 0
|
||||
m_Colors:
|
||||
data:
|
||||
first:
|
||||
name: _EmissionColor
|
||||
second: {r: 0, g: 0, b: 0, a: 1}
|
||||
data:
|
||||
first:
|
||||
name: _Color
|
||||
second: {r: .800000012, g: .800000012, b: .800000012, a: 1}
|
||||
8
Assets/prefabs/Materials/None.mat.meta
Normal file
8
Assets/prefabs/Materials/None.mat.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 44a9bc5b2376b3b4f858f61020f4ec2f
|
||||
timeCreated: 1454175515
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -105,8 +105,8 @@ Transform:
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 135156}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalPosition: {x: 2.73000002, y: .430000007, z: .861041784}
|
||||
m_LocalScale: {x: 5, y: 5, z: 5}
|
||||
m_Children:
|
||||
- {fileID: 417746}
|
||||
- {fileID: 463954}
|
||||
@ -160,7 +160,7 @@ MeshRenderer:
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 8af19731d0d7f6c48bac51221c3ad914, type: 2}
|
||||
- {fileID: 0}
|
||||
m_SubsetIndices:
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_UseLightProbes: 1
|
||||
@ -184,7 +184,7 @@ MeshRenderer:
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 8af19731d0d7f6c48bac51221c3ad914, type: 2}
|
||||
- {fileID: 0}
|
||||
m_SubsetIndices:
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_UseLightProbes: 1
|
||||
@ -208,7 +208,7 @@ MeshRenderer:
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 8af19731d0d7f6c48bac51221c3ad914, type: 2}
|
||||
- {fileID: 0}
|
||||
m_SubsetIndices:
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_UseLightProbes: 1
|
||||
@ -229,7 +229,7 @@ MeshRenderer:
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 175536}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 80d5fbaee57b7415e8565440f7f176e9, type: 2}
|
||||
|
||||
723
Assets/scenes/PatScene.unity
Normal file
723
Assets/scenes/PatScene.unity
Normal file
@ -0,0 +1,723 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: .25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: .00999999978
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1}
|
||||
m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1}
|
||||
m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 3
|
||||
m_SkyboxMaterial: {fileID: 0}
|
||||
m_HaloStrength: .5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 5
|
||||
m_GIWorkflowMode: 1
|
||||
m_LightmapsMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 0
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 3
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AOMaxDistance: 1
|
||||
m_Padding: 2
|
||||
m_CompAOExponent: 0
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightmapSnapshot: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentRadius: .5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: .400000006
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
cellSize: .166666672
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1001 &215144255
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: .666631162
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: .145443216
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 117118, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: CharacterController (1)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11495336, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: character
|
||||
value:
|
||||
objectReference: {fileID: 977341308}
|
||||
- target: {fileID: 11495336, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: playerNumber
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!114 &488783779 stripped
|
||||
MonoBehaviour:
|
||||
m_PrefabParentObject: {fileID: 11431374, guid: d9aa98efb3480c8438047a4565cd1893,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 1229110618}
|
||||
m_Script: {fileID: 11500000, guid: 0f36f7c8f7d8e03418efcbf2c3645cd8, type: 3}
|
||||
--- !u!114 &977341308 stripped
|
||||
MonoBehaviour:
|
||||
m_PrefabParentObject: {fileID: 11431374, guid: d9aa98efb3480c8438047a4565cd1893,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 1778514724}
|
||||
m_Script: {fileID: 11500000, guid: 0f36f7c8f7d8e03418efcbf2c3645cd8, type: 3}
|
||||
--- !u!1 &1008797114
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1008797119}
|
||||
- 20: {fileID: 1008797118}
|
||||
- 92: {fileID: 1008797117}
|
||||
- 124: {fileID: 1008797116}
|
||||
- 81: {fileID: 1008797115}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &1008797115
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1008797114}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &1008797116
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1008797114}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &1008797117
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1008797114}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &1008797118
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1008797114}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: .300000012
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: .0219999999
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!4 &1008797119
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1008797114}
|
||||
m_LocalRotation: {x: .484580696, y: 0, z: 0, w: .874746561}
|
||||
m_LocalPosition: {x: 2.5999999, y: 13.8000002, z: -8.89999962}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 3
|
||||
--- !u!1 &1018231122
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1018231124}
|
||||
- 114: {fileID: 1018231123}
|
||||
m_Layer: 0
|
||||
m_Name: InputManager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1018231123
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1018231122}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 6e33ba5066fe01747b2722e6f089a2ba, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
MAX_PLAYER_COUNT: 3
|
||||
InputMapperAsset: {fileID: 11400000, guid: c1d726eedc374be4fb2ebc66c9c5a740, type: 2}
|
||||
--- !u!4 &1018231124
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1018231122}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: .666631162, y: .145443216, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 4
|
||||
--- !u!1 &1052409465
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1052409467}
|
||||
- 108: {fileID: 1052409466}
|
||||
m_Layer: 0
|
||||
m_Name: Directional light
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!108 &1052409466
|
||||
Light:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1052409465}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 6
|
||||
m_Type: 1
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Intensity: 1
|
||||
m_Range: 10
|
||||
m_SpotAngle: 30
|
||||
m_CookieSize: 10
|
||||
m_Shadows:
|
||||
m_Type: 1
|
||||
m_Resolution: -1
|
||||
m_Strength: 1
|
||||
m_Bias: .0500000007
|
||||
m_NormalBias: .400000006
|
||||
m_Cookie: {fileID: 0}
|
||||
m_DrawHalo: 0
|
||||
m_Flare: {fileID: 0}
|
||||
m_RenderMode: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_Lightmapping: 4
|
||||
m_BounceIntensity: 1
|
||||
m_ShadowRadius: 0
|
||||
m_ShadowAngle: 0
|
||||
m_AreaSize: {x: 1, y: 1}
|
||||
--- !u!4 &1052409467
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1052409465}
|
||||
m_LocalRotation: {x: .167316198, y: -.254906625, z: .0448322445, w: .951324344}
|
||||
m_LocalPosition: {x: 15.0299997, y: -.0199999809, z: 8.30000019}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 7
|
||||
--- !u!1001 &1229110618
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 7.78000021
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: .140000001
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 3.28999996
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 198936, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: BlackBeard
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 13757278, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_Materials.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 65f141b41fd397d4db600540cd8db42d, type: 2}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1001 &1344668562
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: .666631162
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: .145443216
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 117118, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: CharacterController (2)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11495336, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: character
|
||||
value:
|
||||
objectReference: {fileID: 488783779}
|
||||
- target: {fileID: 11495336, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: playerNumber
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!114 &1454034002 stripped
|
||||
MonoBehaviour:
|
||||
m_PrefabParentObject: {fileID: 11431374, guid: d9aa98efb3480c8438047a4565cd1893,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 1682839029}
|
||||
m_Script: {fileID: 11500000, guid: 0f36f7c8f7d8e03418efcbf2c3645cd8, type: 3}
|
||||
--- !u!1001 &1682839029
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -2.38000011
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: .189999998
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 3.22000003
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 9
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 198936, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: YellowBeard
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1001 &1777326589
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: .666631162
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: .145443216
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11495336, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: character
|
||||
value:
|
||||
objectReference: {fileID: 1454034002}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1001 &1778514724
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 2.9000001
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: .140000001
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -5.84000015
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 198936, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: RedBeard
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 13757278, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_Materials.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 5bf9d6eaf690b0d48b78d8d20c7960e3, type: 2}
|
||||
- target: {fileID: 5463890, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_IsKinematic
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1 &2024085281
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 2024085285}
|
||||
- 33: {fileID: 2024085284}
|
||||
- 64: {fileID: 2024085283}
|
||||
- 23: {fileID: 2024085282}
|
||||
m_Layer: 0
|
||||
m_Name: Floor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!23 &2024085282
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 2024085281}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_SubsetIndices:
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_UseLightProbes: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 1
|
||||
m_ImportantGI: 0
|
||||
m_AutoUVMaxDistance: .5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!64 &2024085283
|
||||
MeshCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 2024085281}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_Convex: 0
|
||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!33 &2024085284
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 2024085281}
|
||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &2024085285
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 2024085281}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 5, y: 5, z: 5}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 5
|
||||
--- !u!1001 &2031148190
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 2.73000002
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: .430000007
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: .861041784
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2370082, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_Materials.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 8af19731d0d7f6c48bac51221c3ad914, type: 2}
|
||||
- target: {fileID: 2335330, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_Materials.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 8af19731d0d7f6c48bac51221c3ad914, type: 2}
|
||||
- target: {fileID: 2308356, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_Materials.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 8af19731d0d7f6c48bac51221c3ad914, type: 2}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
8
Assets/scenes/PatScene.unity.meta
Normal file
8
Assets/scenes/PatScene.unity.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f5d6138960cb5ef41863e6d47f253a3c
|
||||
timeCreated: 1454148779
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
821
Assets/scenes/jptest.unity
Normal file
821
Assets/scenes/jptest.unity
Normal file
@ -0,0 +1,821 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 3
|
||||
m_SkyboxMaterial: {fileID: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_GIWorkflowMode: 1
|
||||
m_LightmapsMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 0
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 3
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AOMaxDistance: 1
|
||||
m_Padding: 2
|
||||
m_CompAOExponent: 0
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
cellSize: 0.16666667
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &206535105 stripped
|
||||
GameObject:
|
||||
m_PrefabParentObject: {fileID: 198936, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
m_PrefabInternal: {fileID: 1229110618}
|
||||
--- !u!145 &206535109
|
||||
SpringJoint:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 206535105}
|
||||
m_ConnectedBody: {fileID: 1620611578}
|
||||
m_Anchor: {x: 0, y: 0, z: 0}
|
||||
m_AutoConfigureConnectedAnchor: 1
|
||||
m_ConnectedAnchor: {x: 1.0100001, y: -0.058000006, z: 0.48579165}
|
||||
serializedVersion: 2
|
||||
m_Spring: 10
|
||||
m_Damper: 0.2
|
||||
m_MinDistance: 0
|
||||
m_MaxDistance: 0
|
||||
m_Tolerance: 0.025
|
||||
m_BreakForce: Infinity
|
||||
m_BreakTorque: Infinity
|
||||
m_EnableCollision: 0
|
||||
m_EnablePreprocessing: 1
|
||||
--- !u!1001 &215144255
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: .666631162
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: .145443216
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 117118, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: CharacterController (1)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11495336, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: character
|
||||
value:
|
||||
objectReference: {fileID: 977341308}
|
||||
- target: {fileID: 11495336, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: playerNumber
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!114 &488783779 stripped
|
||||
MonoBehaviour:
|
||||
m_PrefabParentObject: {fileID: 11431374, guid: d9aa98efb3480c8438047a4565cd1893,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 1229110618}
|
||||
m_Script: {fileID: 11500000, guid: 0f36f7c8f7d8e03418efcbf2c3645cd8, type: 3}
|
||||
--- !u!1 &831980493 stripped
|
||||
GameObject:
|
||||
m_PrefabParentObject: {fileID: 198936, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
m_PrefabInternal: {fileID: 1682839029}
|
||||
--- !u!145 &831980497
|
||||
SpringJoint:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 831980493}
|
||||
m_ConnectedBody: {fileID: 1620611578}
|
||||
m_Anchor: {x: 0, y: 0, z: 0}
|
||||
m_AutoConfigureConnectedAnchor: 1
|
||||
m_ConnectedAnchor: {x: -1.0220001, y: -0.048000004, z: 0.47179165}
|
||||
serializedVersion: 2
|
||||
m_Spring: 10
|
||||
m_Damper: 0.2
|
||||
m_MinDistance: 0
|
||||
m_MaxDistance: 0
|
||||
m_Tolerance: 0.025
|
||||
m_BreakForce: Infinity
|
||||
m_BreakTorque: Infinity
|
||||
m_EnableCollision: 0
|
||||
m_EnablePreprocessing: 1
|
||||
--- !u!114 &977341308 stripped
|
||||
MonoBehaviour:
|
||||
m_PrefabParentObject: {fileID: 11431374, guid: d9aa98efb3480c8438047a4565cd1893,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 1778514724}
|
||||
m_Script: {fileID: 11500000, guid: 0f36f7c8f7d8e03418efcbf2c3645cd8, type: 3}
|
||||
--- !u!1 &1008797114
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1008797119}
|
||||
- 20: {fileID: 1008797118}
|
||||
- 92: {fileID: 1008797117}
|
||||
- 124: {fileID: 1008797116}
|
||||
- 81: {fileID: 1008797115}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &1008797115
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1008797114}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &1008797116
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1008797114}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &1008797117
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1008797114}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &1008797118
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1008797114}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!4 &1008797119
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1008797114}
|
||||
m_LocalRotation: {x: 0.4845807, y: 0, z: 0, w: 0.87474656}
|
||||
m_LocalPosition: {x: 2.6, y: 13.8, z: -8.9}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 3
|
||||
--- !u!1 &1018231122
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1018231124}
|
||||
- 114: {fileID: 1018231123}
|
||||
m_Layer: 0
|
||||
m_Name: InputManager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1018231123
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1018231122}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 6e33ba5066fe01747b2722e6f089a2ba, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
MAX_PLAYER_COUNT: 3
|
||||
InputMapperAsset: {fileID: 11400000, guid: c1d726eedc374be4fb2ebc66c9c5a740, type: 2}
|
||||
--- !u!4 &1018231124
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1018231122}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0.66663116, y: 0.14544322, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 4
|
||||
--- !u!1 &1052409465
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1052409467}
|
||||
- 108: {fileID: 1052409466}
|
||||
m_Layer: 0
|
||||
m_Name: Directional light
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!108 &1052409466
|
||||
Light:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1052409465}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 6
|
||||
m_Type: 1
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Intensity: 1
|
||||
m_Range: 10
|
||||
m_SpotAngle: 30
|
||||
m_CookieSize: 10
|
||||
m_Shadows:
|
||||
m_Type: 1
|
||||
m_Resolution: -1
|
||||
m_Strength: 1
|
||||
m_Bias: 0.05
|
||||
m_NormalBias: 0.4
|
||||
m_NearPlane: 0.2
|
||||
m_Cookie: {fileID: 0}
|
||||
m_DrawHalo: 0
|
||||
m_Flare: {fileID: 0}
|
||||
m_RenderMode: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_Lightmapping: 4
|
||||
m_BounceIntensity: 1
|
||||
m_ShadowRadius: 0
|
||||
m_ShadowAngle: 0
|
||||
m_AreaSize: {x: 1, y: 1}
|
||||
--- !u!4 &1052409467
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1052409465}
|
||||
m_LocalRotation: {x: 0.1673162, y: -0.25490662, z: 0.044832245, w: 0.95132434}
|
||||
m_LocalPosition: {x: 15.03, y: -0.01999998, z: 8.3}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 7
|
||||
--- !u!1001 &1229110618
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 7.78000021
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: .140000001
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 3.28999996
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 198936, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: BlackBeard
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 13757278, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_Materials.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 65f141b41fd397d4db600540cd8db42d, type: 2}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1 &1251883238 stripped
|
||||
GameObject:
|
||||
m_PrefabParentObject: {fileID: 198936, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
m_PrefabInternal: {fileID: 1778514724}
|
||||
--- !u!145 &1251883242
|
||||
SpringJoint:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1251883238}
|
||||
m_ConnectedBody: {fileID: 1620611578}
|
||||
m_Anchor: {x: 0, y: 0, z: 0}
|
||||
m_AutoConfigureConnectedAnchor: 1
|
||||
m_ConnectedAnchor: {x: 0.034000017, y: -0.058000006, z: -1.3402084}
|
||||
serializedVersion: 2
|
||||
m_Spring: 10
|
||||
m_Damper: 0.2
|
||||
m_MinDistance: 0
|
||||
m_MaxDistance: 0
|
||||
m_Tolerance: 0.025
|
||||
m_BreakForce: Infinity
|
||||
m_BreakTorque: Infinity
|
||||
m_EnableCollision: 0
|
||||
m_EnablePreprocessing: 1
|
||||
--- !u!1001 &1344668562
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: .666631162
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: .145443216
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 117118, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: CharacterController (2)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11495336, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: character
|
||||
value:
|
||||
objectReference: {fileID: 488783779}
|
||||
- target: {fileID: 11495336, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: playerNumber
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!114 &1454034002 stripped
|
||||
MonoBehaviour:
|
||||
m_PrefabParentObject: {fileID: 11431374, guid: d9aa98efb3480c8438047a4565cd1893,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 1682839029}
|
||||
m_Script: {fileID: 11500000, guid: 0f36f7c8f7d8e03418efcbf2c3645cd8, type: 3}
|
||||
--- !u!1 &1620611576 stripped
|
||||
GameObject:
|
||||
m_PrefabParentObject: {fileID: 135156, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
m_PrefabInternal: {fileID: 2031148190}
|
||||
--- !u!54 &1620611578
|
||||
Rigidbody:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1620611576}
|
||||
serializedVersion: 2
|
||||
m_Mass: 1
|
||||
m_Drag: 0
|
||||
m_AngularDrag: 0.05
|
||||
m_UseGravity: 0
|
||||
m_IsKinematic: 0
|
||||
m_Interpolate: 0
|
||||
m_Constraints: 80
|
||||
m_CollisionDetection: 0
|
||||
--- !u!1001 &1682839029
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -2.38
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.19
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 3.22
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 9
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 198936, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: YellowBeard
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1001 &1777326589
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: .666631162
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: .145443216
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 422570, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11495336, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
propertyPath: character
|
||||
value:
|
||||
objectReference: {fileID: 1454034002}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 0a3031db8d5701f47984a4267336a83f, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1001 &1778514724
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 2.9000001
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: .140000001
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -5.84000015
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 473846, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 198936, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: RedBeard
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 13757278, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_Materials.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 5bf9d6eaf690b0d48b78d8d20c7960e3, type: 2}
|
||||
- target: {fileID: 5463890, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
propertyPath: m_IsKinematic
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: d9aa98efb3480c8438047a4565cd1893, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1 &2024085281
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 2024085285}
|
||||
- 33: {fileID: 2024085284}
|
||||
- 64: {fileID: 2024085283}
|
||||
- 23: {fileID: 2024085282}
|
||||
m_Layer: 0
|
||||
m_Name: Floor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!23 &2024085282
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 2024085281}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_Materials:
|
||||
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_SubsetIndices:
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_UseLightProbes: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 1
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!64 &2024085283
|
||||
MeshCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 2024085281}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_Convex: 0
|
||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!33 &2024085284
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 2024085281}
|
||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &2024085285
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 2024085281}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 5, y: 5, z: 5}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 6
|
||||
--- !u!1001 &2031148190
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 2.73000002
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: .430000007
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: .861041784
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 447650, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2370082, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_Materials.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 8af19731d0d7f6c48bac51221c3ad914, type: 2}
|
||||
- target: {fileID: 2335330, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_Materials.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 8af19731d0d7f6c48bac51221c3ad914, type: 2}
|
||||
- target: {fileID: 2308356, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_Materials.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 8af19731d0d7f6c48bac51221c3ad914, type: 2}
|
||||
- target: {fileID: 463954, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.054
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
8
Assets/scenes/jptest.unity.meta
Normal file
8
Assets/scenes/jptest.unity.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dd8130a1ffd59d0418b28e319cf0cfa0
|
||||
timeCreated: 1454171966
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
90
Assets/scripts/Character.cs
Normal file
90
Assets/scripts/Character.cs
Normal file
@ -0,0 +1,90 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System;
|
||||
|
||||
[RequireComponent(typeof(Rigidbody))]
|
||||
public class Character : MonoBehaviour
|
||||
{
|
||||
public Animator animator;
|
||||
|
||||
public float MoveSpeed;
|
||||
public float TurnSpeed;
|
||||
public float DashForce;
|
||||
public float DashCooldown;
|
||||
|
||||
private Rigidbody rb;
|
||||
private Quaternion targetRot;
|
||||
|
||||
private float dashRemainingTime = 0f;
|
||||
private bool isDashing = false;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
rb = GetComponent<Rigidbody>();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (dashRemainingTime > 0)
|
||||
{
|
||||
dashRemainingTime = Mathf.Clamp(dashRemainingTime - Time.deltaTime, 0f, DashCooldown);
|
||||
}
|
||||
|
||||
if (!isDashing)
|
||||
{
|
||||
rb.rotation = Quaternion.RotateTowards(rb.rotation, targetRot, TurnSpeed * Time.deltaTime);
|
||||
}
|
||||
}
|
||||
|
||||
public void Move(float xValue, float zValue)
|
||||
{
|
||||
if (isDashing) return;
|
||||
|
||||
Vector3 forwardDir = Camera.main.transform.forward;
|
||||
Vector3 rightDir = Camera.main.transform.right;
|
||||
|
||||
forwardDir.y = 0f;
|
||||
forwardDir = forwardDir.normalized * zValue;
|
||||
|
||||
rightDir.y = 0f;
|
||||
rightDir = rightDir.normalized * xValue;
|
||||
|
||||
Vector3 newVelocity = (forwardDir + rightDir) * MoveSpeed;
|
||||
|
||||
if (newVelocity != Vector3.zero)
|
||||
{
|
||||
// We rotate to face the new direction
|
||||
targetRot = Quaternion.LookRotation(newVelocity.normalized);
|
||||
}
|
||||
|
||||
newVelocity.y = rb.velocity.y;
|
||||
|
||||
rb.velocity = newVelocity;
|
||||
animator.SetFloat("Walk", rb.velocity.magnitude);
|
||||
}
|
||||
|
||||
public bool Dash()
|
||||
{
|
||||
if (dashRemainingTime > 0f) return false;
|
||||
|
||||
dashRemainingTime = DashCooldown;
|
||||
|
||||
StartCoroutine(DashCoroutine());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private IEnumerator DashCoroutine()
|
||||
{
|
||||
isDashing = true;
|
||||
|
||||
Vector3 fwd = GetComponent<Transform>().forward;
|
||||
rb.velocity = Vector3.zero;
|
||||
rb.AddForce(fwd * DashForce, ForceMode.Impulse);
|
||||
animator.SetTrigger("Dash");
|
||||
|
||||
yield return new WaitForSeconds(0.9f);
|
||||
|
||||
isDashing = false;
|
||||
}
|
||||
}
|
||||
12
Assets/scripts/Character.cs.meta
Normal file
12
Assets/scripts/Character.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0f36f7c8f7d8e03418efcbf2c3645cd8
|
||||
timeCreated: 1454148812
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
57
Assets/scripts/CharacterController.cs
Normal file
57
Assets/scripts/CharacterController.cs
Normal file
@ -0,0 +1,57 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using InputHandler;
|
||||
|
||||
public class CharacterController : MonoBehaviour
|
||||
{
|
||||
public enum PlayerNumber { One, Two, Three }
|
||||
|
||||
public Character character;
|
||||
public PlayerNumber playerNumber;
|
||||
|
||||
void Start ()
|
||||
{
|
||||
InputManager.Instance.PushActiveContext("Normal", (int)playerNumber);
|
||||
InputManager.Instance.AddCallback((int)playerNumber, HandlePlayerAxis);
|
||||
InputManager.Instance.AddCallback((int)playerNumber, HandlePlayerButtons);
|
||||
}
|
||||
|
||||
private void HandlePlayerAxis(MappedInput input)
|
||||
{
|
||||
if (character == null) return;
|
||||
|
||||
float xValue = 0f;
|
||||
|
||||
if (input.Ranges.ContainsKey("MoveLeft"))
|
||||
{
|
||||
xValue = -input.Ranges["MoveLeft"];
|
||||
}
|
||||
else if (input.Ranges.ContainsKey("MoveRight"))
|
||||
{
|
||||
xValue = input.Ranges["MoveRight"];
|
||||
}
|
||||
|
||||
float zValue = 0f;
|
||||
|
||||
if (input.Ranges.ContainsKey("MoveForward"))
|
||||
{
|
||||
zValue = input.Ranges["MoveForward"];
|
||||
}
|
||||
else if (input.Ranges.ContainsKey("MoveBackward"))
|
||||
{
|
||||
zValue = -input.Ranges["MoveBackward"];
|
||||
}
|
||||
|
||||
character.Move(xValue, zValue);
|
||||
}
|
||||
|
||||
private void HandlePlayerButtons(MappedInput input)
|
||||
{
|
||||
if (character == null) return;
|
||||
|
||||
if (input.Actions.Contains("Dash"))
|
||||
{
|
||||
character.Dash();
|
||||
}
|
||||
}
|
||||
}
|
||||
12
Assets/scripts/CharacterController.cs.meta
Normal file
12
Assets/scripts/CharacterController.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8cb928dc47bb84343830c964dd63c454
|
||||
timeCreated: 1454148825
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/scripts/InputHandler.meta
Normal file
9
Assets/scripts/InputHandler.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d6e2ccb4aa280a04297ff5048cde5ee1
|
||||
folderAsset: yes
|
||||
timeCreated: 1434183356
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
196
Assets/scripts/InputHandler/ControllerManager.cs
Normal file
196
Assets/scripts/InputHandler/ControllerManager.cs
Normal file
@ -0,0 +1,196 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using XInputDotNetPure;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace InputHandler
|
||||
{
|
||||
public class ControllerManager : InputManager
|
||||
{
|
||||
private bool[] _initialSetupDone;
|
||||
private PlayerIndex[] _playerIndexes;
|
||||
private GamePadState[] _gamePadPreviousStates;
|
||||
private GamePadState[] _gamePadStates;
|
||||
|
||||
protected override void InitialSetup()
|
||||
{
|
||||
_initialSetupDone = new bool[MAX_PLAYER_COUNT];
|
||||
_playerIndexes = new PlayerIndex[MAX_PLAYER_COUNT];
|
||||
_gamePadPreviousStates = new GamePadState[MAX_PLAYER_COUNT];
|
||||
_gamePadStates = new GamePadState[MAX_PLAYER_COUNT];
|
||||
|
||||
for (int i = 0; i < MAX_PLAYER_COUNT; i++)
|
||||
{
|
||||
_gamePadStates[i] = GamePad.GetState(_playerIndexes[i]);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void MapInputs()
|
||||
{
|
||||
for (int i = 0; i < MAX_PLAYER_COUNT; i++)
|
||||
{
|
||||
_gamePadPreviousStates[i] = _gamePadStates[i];
|
||||
_gamePadStates[i] = GamePad.GetState(_playerIndexes[i]);
|
||||
|
||||
if (!_gamePadPreviousStates[i].IsConnected || !_initialSetupDone[i])
|
||||
{
|
||||
_initialSetupDone[i] = true;
|
||||
|
||||
if (_gamePadStates[i].IsConnected)
|
||||
{
|
||||
_playerIndexes[i] = (PlayerIndex)i;
|
||||
|
||||
Debug.Log(string.Format("GamePad {0} is ready", _playerIndexes[i]));
|
||||
}
|
||||
}
|
||||
|
||||
MapPlayerInput(_inputMappers[i], _gamePadStates[i], _gamePadPreviousStates[i]);
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Maybe reduce it to only the inputs actually used in the game?
|
||||
private void MapPlayerInput(InputMapper inputMapper, GamePadState state, GamePadState previousState)
|
||||
{
|
||||
foreach (int axisInt in InputMapperAsset.GetMappedXboxAxis())
|
||||
{
|
||||
MapXboxAxis(axisInt, inputMapper, state);
|
||||
}
|
||||
|
||||
foreach (int buttonInt in InputMapperAsset.GetMappedXboxButtons())
|
||||
{
|
||||
MapXboxButton(buttonInt, inputMapper, state, previousState);
|
||||
}
|
||||
|
||||
// TODO: Put the following code into another class, so we can have 2 distinct XboxManager and KeyboardManager classes
|
||||
|
||||
// We map only the keyboard keys that are going to be used in the game
|
||||
|
||||
foreach (int key in InputMapperAsset.GetMappedKeyboardKeys())
|
||||
{
|
||||
inputMapper.SetRawButtonState(100 + key, Input.GetKey((KeyCode)key), Input.GetKey((KeyCode)key) && !Input.GetKeyDown((KeyCode)key));
|
||||
}
|
||||
|
||||
foreach (int key in InputMapperAsset.GetMappedKeyboardKeysAxis())
|
||||
{
|
||||
float value = Input.GetKey((KeyCode)key) ? 1f : 0f;
|
||||
|
||||
inputMapper.SetRawAxisValue(100 + key, value);
|
||||
}
|
||||
}
|
||||
|
||||
private void MapXboxButton(int buttonInt, InputMapper inputMapper, GamePadState state, GamePadState previousState)
|
||||
{
|
||||
XboxInputConstants.Buttons button = (XboxInputConstants.Buttons)buttonInt;
|
||||
|
||||
bool pressed = false;
|
||||
bool previouslyPressed = false;
|
||||
|
||||
switch (button)
|
||||
{
|
||||
case XboxInputConstants.Buttons.A:
|
||||
pressed = state.Buttons.A == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.Buttons.A == ButtonState.Pressed;
|
||||
break;
|
||||
case XboxInputConstants.Buttons.B:
|
||||
pressed = state.Buttons.B == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.Buttons.B == ButtonState.Pressed;
|
||||
break;
|
||||
case XboxInputConstants.Buttons.X:
|
||||
pressed = state.Buttons.X == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.Buttons.X == ButtonState.Pressed;
|
||||
break;
|
||||
case XboxInputConstants.Buttons.Y:
|
||||
pressed = state.Buttons.Y == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.Buttons.Y == ButtonState.Pressed;
|
||||
break;
|
||||
case XboxInputConstants.Buttons.LeftShoulder:
|
||||
pressed = state.Buttons.LeftShoulder == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.Buttons.LeftShoulder == ButtonState.Pressed;
|
||||
break;
|
||||
case XboxInputConstants.Buttons.RightShoulder:
|
||||
pressed = state.Buttons.RightShoulder == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.Buttons.RightShoulder == ButtonState.Pressed;
|
||||
break;
|
||||
case XboxInputConstants.Buttons.Back:
|
||||
pressed = state.Buttons.Back == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.Buttons.Back == ButtonState.Pressed;
|
||||
break;
|
||||
case XboxInputConstants.Buttons.Start:
|
||||
pressed = state.Buttons.Start == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.Buttons.Start == ButtonState.Pressed;
|
||||
break;
|
||||
case XboxInputConstants.Buttons.LeftStick:
|
||||
pressed = state.Buttons.LeftStick == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.Buttons.LeftStick == ButtonState.Pressed;
|
||||
break;
|
||||
case XboxInputConstants.Buttons.RightStick:
|
||||
pressed = state.Buttons.RightStick == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.Buttons.RightStick == ButtonState.Pressed;
|
||||
break;
|
||||
case XboxInputConstants.Buttons.DPadLeft:
|
||||
pressed = state.DPad.Left == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.DPad.Left == ButtonState.Pressed;
|
||||
break;
|
||||
case XboxInputConstants.Buttons.DPadRight:
|
||||
pressed = state.DPad.Right == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.DPad.Right == ButtonState.Pressed;
|
||||
break;
|
||||
case XboxInputConstants.Buttons.DPadUp:
|
||||
pressed = state.DPad.Up == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.DPad.Up == ButtonState.Pressed;
|
||||
break;
|
||||
case XboxInputConstants.Buttons.DPadDown:
|
||||
pressed = state.DPad.Down == ButtonState.Pressed;
|
||||
previouslyPressed = previousState.DPad.Down == ButtonState.Pressed;
|
||||
break;
|
||||
}
|
||||
|
||||
inputMapper.SetRawButtonState(buttonInt, pressed, previouslyPressed);
|
||||
}
|
||||
|
||||
private void MapXboxAxis(int axisInt, InputMapper inputMapper, GamePadState state)
|
||||
{
|
||||
XboxInputConstants.Axis axis = (XboxInputConstants.Axis)axisInt;
|
||||
|
||||
float value = 0f;
|
||||
|
||||
switch (axis)
|
||||
{
|
||||
case XboxInputConstants.Axis.LeftStickLeft:
|
||||
// If the left stick X value is negative, we keep it and take its absolute value
|
||||
value = state.ThumbSticks.Left.X < 0f ? -state.ThumbSticks.Left.X : 0f;
|
||||
break;
|
||||
case XboxInputConstants.Axis.LeftStickRight:
|
||||
// If the left stick X value is positive, we keep it
|
||||
value = state.ThumbSticks.Left.X > 0f ? state.ThumbSticks.Left.X : 0f;
|
||||
break;
|
||||
case XboxInputConstants.Axis.LeftStickDown:
|
||||
value = state.ThumbSticks.Left.Y < 0f ? -state.ThumbSticks.Left.Y : 0f;
|
||||
break;
|
||||
case XboxInputConstants.Axis.LeftStickUp:
|
||||
value = state.ThumbSticks.Left.Y > 0f ? state.ThumbSticks.Left.Y : 0f;
|
||||
break;
|
||||
case XboxInputConstants.Axis.RightStickLeft:
|
||||
value = state.ThumbSticks.Right.X < 0f ? -state.ThumbSticks.Right.X : 0f;
|
||||
break;
|
||||
case XboxInputConstants.Axis.RightStickRight:
|
||||
value = state.ThumbSticks.Right.X > 0f ? state.ThumbSticks.Right.X : 0f;
|
||||
break;
|
||||
case XboxInputConstants.Axis.RightStickDown:
|
||||
value = state.ThumbSticks.Right.Y < 0f ? -state.ThumbSticks.Right.Y : 0f;
|
||||
break;
|
||||
case XboxInputConstants.Axis.RightStickUp:
|
||||
value = state.ThumbSticks.Right.Y > 0f ? state.ThumbSticks.Right.Y : 0f;
|
||||
break;
|
||||
case XboxInputConstants.Axis.TriggerLeft:
|
||||
value = state.Triggers.Left;
|
||||
break;
|
||||
case XboxInputConstants.Axis.TriggerRight:
|
||||
value = state.Triggers.Right;
|
||||
break;
|
||||
}
|
||||
|
||||
inputMapper.SetRawAxisValue(axisInt, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
12
Assets/scripts/InputHandler/ControllerManager.cs.meta
Normal file
12
Assets/scripts/InputHandler/ControllerManager.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6e33ba5066fe01747b2722e6f089a2ba
|
||||
timeCreated: 1436627825
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: -50
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
197
Assets/scripts/InputHandler/ControllerMapperAsset.cs
Normal file
197
Assets/scripts/InputHandler/ControllerMapperAsset.cs
Normal file
@ -0,0 +1,197 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
namespace InputHandler
|
||||
{
|
||||
// TODO: REFACTOR THE WHOLE CLASS, IT STINKS
|
||||
|
||||
[SerializeField]
|
||||
public class ControllerMapperAsset : InputMapperAsset
|
||||
{
|
||||
[Serializable]
|
||||
public class XboxContext
|
||||
{
|
||||
public string name;
|
||||
public XboxAction[] ButtonActions;
|
||||
public XboxRange[] AxisRanges;
|
||||
public XboxState[] ButtonStates;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class XboxAction
|
||||
{
|
||||
public string name;
|
||||
public XboxInputConstants.Buttons[] XboxButtons;
|
||||
public KeyCode[] KeyboardKeys;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class XboxRange
|
||||
{
|
||||
public string name;
|
||||
public XboxInputConstants.Axis[] Axis;
|
||||
public KeyCode[] KeyboardKeys;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class XboxState
|
||||
{
|
||||
public string name;
|
||||
public XboxInputConstants.Buttons[] XboxButtons;
|
||||
public KeyCode[] KeyboardKeys;
|
||||
}
|
||||
|
||||
public XboxContext[] Contexts;
|
||||
|
||||
// TODO: Temporary
|
||||
private List<int> _mappedKeyboardKeysAxis;
|
||||
private List<int> _mappedKeyboardKeys;
|
||||
private List<int> _mappedXboxAxis;
|
||||
private List<int> _mappedXboxButtons;
|
||||
|
||||
// Context -> InputMap
|
||||
public override Dictionary<string, InputContext> GetMappedContexts()
|
||||
{
|
||||
_mappedKeyboardKeys = new List<int>();
|
||||
_mappedKeyboardKeysAxis = new List<int>();
|
||||
_mappedXboxButtons = new List<int>();
|
||||
_mappedXboxAxis = new List<int>();
|
||||
|
||||
Dictionary<string, InputContext> mappedContexts = new Dictionary<string, InputContext>();
|
||||
|
||||
foreach (XboxContext xboxContext in Contexts)
|
||||
{
|
||||
InputMap inputMap = new InputMap();
|
||||
|
||||
inputMap.ButtonsToActionsMap = new List<InputToActionMap>[xboxContext.ButtonActions.Length];
|
||||
inputMap.ButtonsToStatesMap = new List<InputToActionMap>[xboxContext.ButtonStates.Length];
|
||||
inputMap.AxisToRangesMap = new List<InputToActionMap>[xboxContext.AxisRanges.Length];
|
||||
|
||||
for (int i = 0; i < xboxContext.ButtonActions.Length; i++)
|
||||
{
|
||||
XboxAction buttonAction = xboxContext.ButtonActions[i];
|
||||
|
||||
inputMap.ButtonsToActionsMap[i] = new List<InputToActionMap>();
|
||||
|
||||
foreach (XboxInputConstants.Buttons xboxButton in buttonAction.XboxButtons)
|
||||
{
|
||||
// TODO: We need to manage this in the InputMapper side
|
||||
inputMap.ButtonsToActionsMap[i].Add(new InputToActionMap { action = buttonAction.name, input = (int)xboxButton });
|
||||
|
||||
if (!_mappedXboxButtons.Contains((int)xboxButton))
|
||||
{
|
||||
_mappedXboxButtons.Add((int)xboxButton);
|
||||
}
|
||||
}
|
||||
|
||||
// Keyboard part
|
||||
foreach (KeyCode key in buttonAction.KeyboardKeys)
|
||||
{
|
||||
// TODO: Find a way to not add 100 to the code (for now, it's necessary since there are overlaps with the xbox enum)
|
||||
inputMap.ButtonsToActionsMap[i].Add(new InputToActionMap { action = buttonAction.name, input = 100 + (int)key });
|
||||
|
||||
// TODO: Temporary
|
||||
if (!_mappedKeyboardKeys.Contains((int)key))
|
||||
{
|
||||
_mappedKeyboardKeys.Add((int)key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < xboxContext.ButtonStates.Length; i++)
|
||||
{
|
||||
XboxState buttonState = xboxContext.ButtonStates[i];
|
||||
|
||||
inputMap.ButtonsToStatesMap[i] = new List<InputToActionMap>();
|
||||
|
||||
foreach (XboxInputConstants.Buttons xboxButton in buttonState.XboxButtons)
|
||||
{
|
||||
// TODO: We need to manage this in the InputMapper side
|
||||
inputMap.ButtonsToStatesMap[i].Add(new InputToActionMap() { action = buttonState.name, input = (int)xboxButton });
|
||||
|
||||
if (!_mappedXboxButtons.Contains((int)xboxButton))
|
||||
{
|
||||
_mappedXboxButtons.Add((int)xboxButton);
|
||||
}
|
||||
}
|
||||
|
||||
// Keyboard part
|
||||
foreach (KeyCode key in buttonState.KeyboardKeys)
|
||||
{
|
||||
// TODO: Find a way to not add 100 to the code (for now, it's necessary since there are overlaps with the xbox enum)
|
||||
inputMap.ButtonsToStatesMap[i].Add(new InputToActionMap { action = buttonState.name, input = 100 + (int)key });
|
||||
|
||||
// TODO: Temporary
|
||||
if (!_mappedKeyboardKeys.Contains((int)key))
|
||||
{
|
||||
_mappedKeyboardKeys.Add((int)key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < xboxContext.AxisRanges.Length; i++)
|
||||
{
|
||||
XboxRange axisRange = xboxContext.AxisRanges[i];
|
||||
|
||||
inputMap.AxisToRangesMap[i] = new List<InputToActionMap>();
|
||||
|
||||
foreach (XboxInputConstants.Axis xboxAxis in axisRange.Axis)
|
||||
{
|
||||
// TODO: We need to manage this in the InputMapper side
|
||||
inputMap.AxisToRangesMap[i].Add(new InputToActionMap() { action = axisRange.name, input = (int)xboxAxis });
|
||||
|
||||
if (!_mappedXboxAxis.Contains((int)xboxAxis))
|
||||
{
|
||||
_mappedXboxAxis.Add((int)xboxAxis);
|
||||
}
|
||||
}
|
||||
|
||||
// Keyboard part
|
||||
foreach (KeyCode key in axisRange.KeyboardKeys)
|
||||
{
|
||||
// TODO: Find a way to not add 100 to the code (for now, it's necessary since there are overlaps with the xbox enum)
|
||||
inputMap.AxisToRangesMap[i].Add(new InputToActionMap { action = axisRange.name, input = 100 + (int)key });
|
||||
|
||||
// TODO: Temporary
|
||||
if (!_mappedKeyboardKeysAxis.Contains((int)key))
|
||||
{
|
||||
_mappedKeyboardKeysAxis.Add((int)key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
InputContext context = new InputContext(xboxContext.name, inputMap);
|
||||
|
||||
mappedContexts.Add(xboxContext.name, context);
|
||||
}
|
||||
|
||||
return mappedContexts;
|
||||
}
|
||||
|
||||
// TODO: Probably temporary, until we find a better way and all the classes are refactored
|
||||
|
||||
// Utility method to be used by the ControllerManager class
|
||||
public override List<int> GetMappedKeyboardKeysAxis()
|
||||
{
|
||||
return _mappedKeyboardKeysAxis;
|
||||
}
|
||||
|
||||
// Utility method to be used by the ControllerManager class
|
||||
public override List<int> GetMappedKeyboardKeys()
|
||||
{
|
||||
return _mappedKeyboardKeys;
|
||||
}
|
||||
|
||||
public override List<int> GetMappedXboxAxis()
|
||||
{
|
||||
return _mappedXboxAxis;
|
||||
}
|
||||
|
||||
public override List<int> GetMappedXboxButtons()
|
||||
{
|
||||
return _mappedXboxButtons;
|
||||
}
|
||||
}
|
||||
}
|
||||
12
Assets/scripts/InputHandler/ControllerMapperAsset.cs.meta
Normal file
12
Assets/scripts/InputHandler/ControllerMapperAsset.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 539aad81a9327404e8e67bb53c540d91
|
||||
timeCreated: 1436387267
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
19
Assets/scripts/InputHandler/InputConstants.cs
Normal file
19
Assets/scripts/InputHandler/InputConstants.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace InputHandler
|
||||
{
|
||||
public struct InputMap
|
||||
{
|
||||
public List<InputToActionMap>[] ButtonsToActionsMap;
|
||||
public List<InputToActionMap>[] ButtonsToStatesMap;
|
||||
public List<InputToActionMap>[] AxisToRangesMap;
|
||||
}
|
||||
|
||||
public struct InputToActionMap
|
||||
{
|
||||
public int input;
|
||||
public string action;
|
||||
}
|
||||
}
|
||||
12
Assets/scripts/InputHandler/InputConstants.cs.meta
Normal file
12
Assets/scripts/InputHandler/InputConstants.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: baa0e457a4ff21a4a8eb7d57efeef697
|
||||
timeCreated: 1434996179
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
70
Assets/scripts/InputHandler/InputContext.cs
Normal file
70
Assets/scripts/InputHandler/InputContext.cs
Normal file
@ -0,0 +1,70 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
namespace InputHandler
|
||||
{
|
||||
public class InputContext
|
||||
{
|
||||
private Dictionary<int, string> _mappedButtons;
|
||||
private Dictionary<int, string> _mappedStates;
|
||||
private Dictionary<int, string> _mappedAxis;
|
||||
|
||||
private string _name;
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return _name; }
|
||||
}
|
||||
|
||||
|
||||
public InputContext(string contextName, InputMap inputMap)
|
||||
{
|
||||
_name = contextName;
|
||||
|
||||
_mappedButtons = new Dictionary<int, string>();
|
||||
_mappedStates = new Dictionary<int, string>();
|
||||
_mappedAxis = new Dictionary<int, string>();
|
||||
|
||||
foreach (List<InputToActionMap> buttonsToActionsMap in inputMap.ButtonsToActionsMap)
|
||||
{
|
||||
foreach (InputToActionMap buttonToActionMap in buttonsToActionsMap)
|
||||
{
|
||||
_mappedButtons.Add(buttonToActionMap.input, buttonToActionMap.action);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (List<InputToActionMap> buttonsToStatesMap in inputMap.ButtonsToStatesMap)
|
||||
{
|
||||
foreach (InputToActionMap buttonToStateMap in buttonsToStatesMap)
|
||||
{
|
||||
_mappedStates.Add(buttonToStateMap.input, buttonToStateMap.action);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (List<InputToActionMap> axisToRangesMap in inputMap.AxisToRangesMap)
|
||||
{
|
||||
foreach (InputToActionMap axisToRangeMap in axisToRangesMap)
|
||||
{
|
||||
_mappedAxis.Add(axisToRangeMap.input, axisToRangeMap.action);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string GetActionForButton(int button)
|
||||
{
|
||||
return _mappedButtons.ContainsKey(button) ? _mappedButtons[button] : null;
|
||||
}
|
||||
|
||||
public string GetStateForButton(int button)
|
||||
{
|
||||
return _mappedStates.ContainsKey(button) ? _mappedStates[button] : null;
|
||||
}
|
||||
|
||||
public string GetRangeForAxis(int axis)
|
||||
{
|
||||
return _mappedAxis.ContainsKey(axis) ? _mappedAxis[axis] : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
8
Assets/scripts/InputHandler/InputContext.cs.meta
Normal file
8
Assets/scripts/InputHandler/InputContext.cs.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4d99cd0919594864482148f723dfa8e2
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
98
Assets/scripts/InputHandler/InputManager.cs
Normal file
98
Assets/scripts/InputHandler/InputManager.cs
Normal file
@ -0,0 +1,98 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using XInputDotNetPure;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace InputHandler
|
||||
{
|
||||
public abstract class InputManager : MonoBehaviour
|
||||
{
|
||||
public static InputManager Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
|
||||
private static InputManager _instance;
|
||||
|
||||
protected InputMapper[] _inputMappers;
|
||||
|
||||
public int MAX_PLAYER_COUNT = 2;
|
||||
public InputMapperAsset InputMapperAsset;
|
||||
|
||||
protected abstract void InitialSetup();
|
||||
protected abstract void MapInputs();
|
||||
|
||||
void Awake()
|
||||
{
|
||||
if (_instance != null)
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
_instance = this;
|
||||
|
||||
_inputMappers = new InputMapper[MAX_PLAYER_COUNT];
|
||||
|
||||
Dictionary<string, InputContext> mappedContexts = InputMapperAsset.GetMappedContexts();
|
||||
|
||||
for (int i = 0; i < MAX_PLAYER_COUNT; i++)
|
||||
{
|
||||
_inputMappers[i] = new InputMapper(mappedContexts, i);
|
||||
}
|
||||
|
||||
// Do the needed initial setup in the derived classes
|
||||
InitialSetup();
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
// Do the input mapping here in the derived classes
|
||||
MapInputs();
|
||||
|
||||
for (int i = 0; i < _inputMappers.Length; i++)
|
||||
{
|
||||
_inputMappers[i].Dispatch();
|
||||
}
|
||||
}
|
||||
|
||||
public void AddCallback(int playerIndex, Action<MappedInput> action)
|
||||
{
|
||||
_inputMappers[playerIndex].AddCallback(action);
|
||||
}
|
||||
|
||||
public void PushActiveContext(string name, int playerIndex)
|
||||
{
|
||||
_inputMappers[playerIndex].PushActiveContext(name);
|
||||
}
|
||||
|
||||
public void PopActiveContext(int playerIndex)
|
||||
{
|
||||
// TODO: Give the choice to remove an active context not on top
|
||||
_inputMappers[playerIndex].PopActiveContext();
|
||||
}
|
||||
|
||||
public void ClearContexts()
|
||||
{
|
||||
// For now, all input mappers are gonna have the same contexts at the same time
|
||||
|
||||
for (int i = 0; i < _inputMappers.Length; i++)
|
||||
{
|
||||
_inputMappers[i].ClearActiveContexts();
|
||||
}
|
||||
}
|
||||
|
||||
void LateUpdate()
|
||||
{
|
||||
for (int i = 0; i < _inputMappers.Length; i++)
|
||||
{
|
||||
_inputMappers[i].ResetInputs();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
12
Assets/scripts/InputHandler/InputManager.cs.meta
Normal file
12
Assets/scripts/InputHandler/InputManager.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 967b7f4e180b49f4fb6f53702c67aa34
|
||||
timeCreated: 1436627825
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: -100
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
205
Assets/scripts/InputHandler/InputMapper.cs
Normal file
205
Assets/scripts/InputHandler/InputMapper.cs
Normal file
@ -0,0 +1,205 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
/*
|
||||
Strongly inspired from Mike Lewis' excellent post about input handling
|
||||
http://www.gamedev.net/blog/355/entry-2250186-designing-a-robust-input-handling-system-for-games/
|
||||
*/
|
||||
|
||||
namespace InputHandler
|
||||
{
|
||||
public class InputMapper
|
||||
{
|
||||
// Right now, the only active context is the peek of the stack, but when we will need multiple contexts at once, this is going to be useful
|
||||
private Dictionary<string, InputContext> _contexts;
|
||||
private Stack<InputContext> _activeContexts;
|
||||
|
||||
private List<Action<MappedInput>> _callbacks;
|
||||
|
||||
private MappedInput _currentFrameMappedInput;
|
||||
|
||||
public InputMapper(Dictionary<string, InputContext> contexts, int playerIndex)
|
||||
{
|
||||
_contexts = contexts;
|
||||
_activeContexts = new Stack<InputContext>();
|
||||
_callbacks = new List<Action<MappedInput>>();
|
||||
_currentFrameMappedInput = new MappedInput(playerIndex);
|
||||
}
|
||||
|
||||
public void Dispatch()
|
||||
{
|
||||
foreach (Action<MappedInput> callback in _callbacks)
|
||||
{
|
||||
callback(_currentFrameMappedInput);
|
||||
}
|
||||
}
|
||||
|
||||
public void PushActiveContext(string name)
|
||||
{
|
||||
InputContext context = _contexts[name];
|
||||
|
||||
if (_activeContexts.Count == 0 || _activeContexts.Peek().Name != name)
|
||||
{
|
||||
_activeContexts.Push(context);
|
||||
}
|
||||
}
|
||||
|
||||
public void PopActiveContext()
|
||||
{
|
||||
if (_activeContexts.Count != 0)
|
||||
{
|
||||
_activeContexts.Pop();
|
||||
}
|
||||
}
|
||||
|
||||
public void ClearActiveContexts()
|
||||
{
|
||||
_activeContexts.Clear();
|
||||
}
|
||||
|
||||
public void AddCallback(Action<MappedInput> callback)
|
||||
{
|
||||
_callbacks.Add(callback);
|
||||
}
|
||||
|
||||
public void SetRawButtonState(int button, bool pressed, bool previouslyPressed)
|
||||
{
|
||||
string action = GetActionForButton(button);
|
||||
string state = GetStateForButton(button);
|
||||
|
||||
if (pressed)
|
||||
{
|
||||
if (!previouslyPressed && action != null)
|
||||
{
|
||||
_currentFrameMappedInput.Actions.Add(action);
|
||||
return;
|
||||
}
|
||||
|
||||
if (state != null)
|
||||
{
|
||||
_currentFrameMappedInput.States.Add(state);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Uncomment if we start to have problems
|
||||
//RemoveButtonFromLists(button);
|
||||
}
|
||||
|
||||
public void SetRawAxisValue(int axis, float value)
|
||||
{
|
||||
// TODO: Have contexts for every single player?
|
||||
|
||||
// TODO: Use the commented code below instead when we will want multiple contexts to be available at the same time (maybe for when the player holds a weapon?). We'll keep it simple for now.
|
||||
|
||||
/*
|
||||
foreach (InputContext activeContext in _activeContexts)
|
||||
{
|
||||
InputConstants.Ranges range = activeContext.GetRangeForAxis(axis);
|
||||
|
||||
if (range != InputConstants.Ranges.None)
|
||||
{
|
||||
// We only want the first active "range behaviour" of the player to handle the ranges values, since we don't want multiple actions to react to it
|
||||
_mappedInputs[playerIndex].Ranges[range] = value;
|
||||
break;
|
||||
}
|
||||
}*/
|
||||
|
||||
if (value != 0f)
|
||||
{
|
||||
string range = null;
|
||||
|
||||
if (_activeContexts.Count != 0)
|
||||
{
|
||||
range = _activeContexts.Peek().GetRangeForAxis(axis);
|
||||
}
|
||||
|
||||
if (range != null)
|
||||
{
|
||||
_currentFrameMappedInput.Ranges[range] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void ResetInputs()
|
||||
{
|
||||
_currentFrameMappedInput.Clear();
|
||||
}
|
||||
|
||||
#region Helper methods
|
||||
|
||||
private string GetActionForButton(int button)
|
||||
{
|
||||
// TODO: Have contexts for every single player?
|
||||
|
||||
// TODO: Use the commented code below instead when we will want multiple contexts to be available at the same time (maybe for when the player holds a weapon?). We'll keep it simple for now.
|
||||
|
||||
/*
|
||||
foreach (InputContext activeContext in _activeContexts)
|
||||
{
|
||||
InputConstants.Actions action = activeContext.GetActionForButton(button);
|
||||
|
||||
if (action != InputConstants.Actions.None)
|
||||
{
|
||||
return action;
|
||||
}
|
||||
}*/
|
||||
|
||||
string action = null;
|
||||
|
||||
if (_activeContexts.Count != 0)
|
||||
{
|
||||
action = _activeContexts.Peek().GetActionForButton(button);
|
||||
}
|
||||
|
||||
return action;
|
||||
}
|
||||
|
||||
private string GetStateForButton(int button)
|
||||
{
|
||||
// TODO: Have contexts for every single player?
|
||||
|
||||
// TODO: Use the commented code below instead when we will want multiple contexts to be available at the same time (maybe for when the player holds a weapon?). We'll keep it simple for now.
|
||||
|
||||
/*
|
||||
foreach (InputContext activeContext in _activeContexts)
|
||||
{
|
||||
InputConstants.States state = activeContext.GetStateForButton(button);
|
||||
|
||||
if (state != InputConstants.States.None)
|
||||
{
|
||||
return state;
|
||||
}
|
||||
}*/
|
||||
|
||||
string state = null;
|
||||
|
||||
if (_activeContexts.Count != 0)
|
||||
{
|
||||
state = _activeContexts.Peek().GetStateForButton(button);
|
||||
}
|
||||
|
||||
return state;
|
||||
}
|
||||
|
||||
private void RemoveButtonFromLists(int button)
|
||||
{
|
||||
string action = GetActionForButton(button);
|
||||
string state = GetStateForButton(button);
|
||||
|
||||
if (action != null)
|
||||
{
|
||||
_currentFrameMappedInput.Actions.Remove(action);
|
||||
}
|
||||
|
||||
if (state != null)
|
||||
{
|
||||
_currentFrameMappedInput.States.Remove(state);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
8
Assets/scripts/InputHandler/InputMapper.cs.meta
Normal file
8
Assets/scripts/InputHandler/InputMapper.cs.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 586455317dda0b543a30eff647db722e
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
20
Assets/scripts/InputHandler/InputMapperAsset.cs
Normal file
20
Assets/scripts/InputHandler/InputMapperAsset.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace InputHandler
|
||||
{
|
||||
public abstract class InputMapperAsset : ScriptableObject
|
||||
{
|
||||
public enum InputTypes { Action, State, Range }
|
||||
|
||||
public abstract Dictionary<string, InputContext> GetMappedContexts();
|
||||
|
||||
// TODO: Probably temporary, until we find a better way and all the classes are refactored
|
||||
public abstract List<int> GetMappedKeyboardKeysAxis();
|
||||
public abstract List<int> GetMappedKeyboardKeys();
|
||||
public abstract List<int> GetMappedXboxAxis();
|
||||
public abstract List<int> GetMappedXboxButtons();
|
||||
}
|
||||
}
|
||||
12
Assets/scripts/InputHandler/InputMapperAsset.cs.meta
Normal file
12
Assets/scripts/InputHandler/InputMapperAsset.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3a5ffa04260e8db4a9eab84c1e6b11ae
|
||||
timeCreated: 1434962375
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
35
Assets/scripts/InputHandler/MappedInput.cs
Normal file
35
Assets/scripts/InputHandler/MappedInput.cs
Normal file
@ -0,0 +1,35 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
namespace InputHandler
|
||||
{
|
||||
// Specific to the game
|
||||
public class MappedInput
|
||||
{
|
||||
// We use hashets for the actions and the states because we just need to check if they are in the collection, and not retrieve them
|
||||
public HashSet<string> Actions = new HashSet<string>();
|
||||
public HashSet<string> States = new HashSet<string>();
|
||||
public Dictionary<string, float> Ranges = new Dictionary<string, float>();
|
||||
|
||||
private int _playerIndex;
|
||||
|
||||
public int PlayerIndex
|
||||
{
|
||||
get { return _playerIndex; }
|
||||
}
|
||||
|
||||
public MappedInput(int playerIndex)
|
||||
{
|
||||
_playerIndex = playerIndex;
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
Actions.Clear();
|
||||
States.Clear();
|
||||
Ranges.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
8
Assets/scripts/InputHandler/MappedInput.cs.meta
Normal file
8
Assets/scripts/InputHandler/MappedInput.cs.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d5fe308a0d85530408827f4357cc1ff5
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
43
Assets/scripts/InputHandler/XboxInputConstants.cs
Normal file
43
Assets/scripts/InputHandler/XboxInputConstants.cs
Normal file
@ -0,0 +1,43 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
namespace InputHandler
|
||||
{
|
||||
//TODO: When we will be ready to read raw inputs from a file, we need this to simply be generic "BUTTON_ONE, BUTTON_TWO, etc."
|
||||
|
||||
public class XboxInputConstants
|
||||
{
|
||||
// These buttons will eventually map to controls saved in a file
|
||||
public enum Buttons
|
||||
{
|
||||
A,
|
||||
B,
|
||||
X,
|
||||
Y,
|
||||
LeftShoulder,
|
||||
RightShoulder,
|
||||
Back,
|
||||
Start,
|
||||
LeftStick,
|
||||
RightStick,
|
||||
DPadLeft,
|
||||
DPadRight,
|
||||
DPadUp,
|
||||
DPadDown,
|
||||
}
|
||||
|
||||
public enum Axis
|
||||
{
|
||||
LeftStickLeft,
|
||||
LeftStickRight,
|
||||
LeftStickUp,
|
||||
LeftStickDown,
|
||||
RightStickLeft,
|
||||
RightStickRight,
|
||||
RightStickUp,
|
||||
RightStickDown,
|
||||
TriggerLeft,
|
||||
TriggerRight
|
||||
}
|
||||
}
|
||||
}
|
||||
12
Assets/scripts/InputHandler/XboxInputConstants.cs.meta
Normal file
12
Assets/scripts/InputHandler/XboxInputConstants.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4b46fefecf9412e46bdad7c26a00d537
|
||||
timeCreated: 1436628179
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -8,6 +8,7 @@ PlayerSettings:
|
||||
defaultScreenOrientation: 4
|
||||
targetDevice: 2
|
||||
targetResolution: 0
|
||||
useOnDemandResources: 0
|
||||
accelerometerFrequency: 60
|
||||
companyName: DefaultCompany
|
||||
productName: GameJamProject
|
||||
@ -28,6 +29,7 @@ PlayerSettings:
|
||||
androidShowActivityIndicatorOnLoading: -1
|
||||
iosAppInBackgroundBehavior: 0
|
||||
displayResolutionDialog: 1
|
||||
iosAllowHTTPDownload: 1
|
||||
allowedAutorotateToPortrait: 1
|
||||
allowedAutorotateToPortraitUpsideDown: 1
|
||||
allowedAutorotateToLandscapeRight: 1
|
||||
@ -60,11 +62,23 @@ PlayerSettings:
|
||||
xboxSpeechDB: 0
|
||||
xboxEnableHeadOrientation: 0
|
||||
xboxEnableGuest: 0
|
||||
n3dsDisableStereoscopicView: 0
|
||||
n3dsEnableSharedListOpt: 1
|
||||
n3dsEnableVSync: 0
|
||||
xboxOneResolution: 0
|
||||
ps3SplashScreen: {fileID: 0}
|
||||
videoMemoryForVertexBuffers: 0
|
||||
psp2PowerMode: 0
|
||||
psp2AcquireBGM: 1
|
||||
wiiUTVResolution: 0
|
||||
wiiUGamePadMSAA: 1
|
||||
wiiUSupportsNunchuk: 0
|
||||
wiiUSupportsClassicController: 0
|
||||
wiiUSupportsBalanceBoard: 0
|
||||
wiiUSupportsMotionPlus: 0
|
||||
wiiUSupportsProController: 0
|
||||
wiiUAllowScreenCapture: 1
|
||||
wiiUControllerCount: 0
|
||||
m_SupportedAspectRatios:
|
||||
4:3: 1
|
||||
5:4: 1
|
||||
@ -77,20 +91,26 @@ PlayerSettings:
|
||||
metroEnableIndependentInputSource: 0
|
||||
metroEnableLowLatencyPresentationAPI: 0
|
||||
xboxOneDisableKinectGpuReservation: 0
|
||||
virtualRealitySupported: 0
|
||||
productGUID: dbca7936984e94248bf9f90833bc0c3a
|
||||
AndroidBundleVersionCode: 1
|
||||
AndroidMinSdkVersion: 9
|
||||
AndroidPreferredInstallLocation: 1
|
||||
aotOptions:
|
||||
apiCompatibilityLevel: 2
|
||||
stripEngineCode: 1
|
||||
iPhoneStrippingLevel: 0
|
||||
iPhoneScriptCallOptimization: 0
|
||||
iPhoneBuildNumber: 0
|
||||
ForceInternetPermission: 0
|
||||
ForceSDCardPermission: 0
|
||||
CreateWallpaper: 0
|
||||
APKExpansionFiles: 0
|
||||
preloadShaders: 0
|
||||
StripUnusedMeshComponents: 0
|
||||
VertexChannelCompressionMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 238
|
||||
iPhoneSdkVersion: 988
|
||||
iPhoneTargetOSVersion: 22
|
||||
uIPrerenderedIcon: 0
|
||||
@ -117,6 +137,15 @@ PlayerSettings:
|
||||
iOSLaunchScreenFillPct: 100
|
||||
iOSLaunchScreenSize: 100
|
||||
iOSLaunchScreenCustomXibPath:
|
||||
iOSLaunchScreeniPadType: 0
|
||||
iOSLaunchScreeniPadImage: {fileID: 0}
|
||||
iOSLaunchScreeniPadBackgroundColor:
|
||||
serializedVersion: 2
|
||||
rgba: 0
|
||||
iOSLaunchScreeniPadFillPct: 100
|
||||
iOSLaunchScreeniPadSize: 100
|
||||
iOSLaunchScreeniPadCustomXibPath:
|
||||
iOSDeviceRequirements: []
|
||||
AndroidTargetDevice: 0
|
||||
AndroidSplashScreenScale: 0
|
||||
androidSplashScreen: {fileID: 0}
|
||||
@ -136,6 +165,23 @@ PlayerSettings:
|
||||
m_BuildTargetGraphicsAPIs: []
|
||||
webPlayerTemplate: APPLICATION:Default
|
||||
m_TemplateCustomTags: {}
|
||||
wiiUTitleID: 0005000011000000
|
||||
wiiUGroupID: 00010000
|
||||
wiiUCommonSaveSize: 4096
|
||||
wiiUAccountSaveSize: 2048
|
||||
wiiUOlvAccessKey: 0
|
||||
wiiUTinCode: 0
|
||||
wiiUJoinGameId: 0
|
||||
wiiUJoinGameModeMask: 0000000000000000
|
||||
wiiUCommonBossSize: 0
|
||||
wiiUAccountBossSize: 0
|
||||
wiiUAddOnUniqueIDs: []
|
||||
wiiUMainThreadStackSize: 3072
|
||||
wiiULoaderThreadStackSize: 1024
|
||||
wiiUSystemHeapSize: 128
|
||||
wiiUTVStartupScreen: {fileID: 0}
|
||||
wiiUGamePadStartupScreen: {fileID: 0}
|
||||
wiiUProfilerLibPath:
|
||||
actionOnDotNetUnhandledException: 1
|
||||
enableInternalProfiler: 0
|
||||
logObjCUncaughtExceptions: 1
|
||||
@ -186,15 +232,20 @@ PlayerSettings:
|
||||
ps4BackgroundImagePath:
|
||||
ps4StartupImagePath:
|
||||
ps4SaveDataImagePath:
|
||||
ps4SdkOverride:
|
||||
ps4BGMPath:
|
||||
ps4ShareFilePath:
|
||||
ps4ShareOverlayImagePath:
|
||||
ps4PrivacyGuardImagePath:
|
||||
ps4NPtitleDatPath:
|
||||
ps4RemotePlayKeyAssignment: -1
|
||||
ps4RemotePlayKeyMappingDir:
|
||||
ps4EnterButtonAssignment: 1
|
||||
ps4ApplicationParam1: 0
|
||||
ps4ApplicationParam2: 0
|
||||
ps4ApplicationParam3: 0
|
||||
ps4ApplicationParam4: 0
|
||||
ps4DownloadDataSize: 0
|
||||
ps4GarlicHeapSize: 2048
|
||||
ps4Passcode: 3mJ7tLHOsT9jNvqC8LNjpnotcWDQLy4O
|
||||
ps4pnSessions: 1
|
||||
@ -202,6 +253,14 @@ PlayerSettings:
|
||||
ps4pnFriends: 1
|
||||
ps4pnGameCustomData: 1
|
||||
playerPrefsSupport: 0
|
||||
ps4ReprojectionSupport: 0
|
||||
ps4UseAudio3dBackend: 0
|
||||
ps4Audio3dVirtualSpeakerCount: 14
|
||||
ps4attribUserManagement: 0
|
||||
ps4attribMoveSupport: 0
|
||||
ps4attrib3DSupport: 0
|
||||
ps4attribShareSupport: 0
|
||||
ps4IncludedModules: []
|
||||
monoEnv:
|
||||
psp2Splashimage: {fileID: 0}
|
||||
psp2NPTrophyPackPath:
|
||||
@ -250,7 +309,6 @@ PlayerSettings:
|
||||
psp2InfoBarOnStartup: 0
|
||||
psp2InfoBarColor: 0
|
||||
psmSplashimage: {fileID: 0}
|
||||
virtualRealitySupported: 0
|
||||
spritePackerPolicy:
|
||||
scriptingDefineSymbols: {}
|
||||
metroPackageName: GameJamProject
|
||||
@ -342,6 +400,17 @@ PlayerSettings:
|
||||
tizenSigningProfileName:
|
||||
tizenGPSPermissions: 0
|
||||
tizenMicrophonePermissions: 0
|
||||
n3dsUseExtSaveData: 0
|
||||
n3dsCompressStaticMem: 1
|
||||
n3dsExtSaveDataNumber: 0x12345
|
||||
n3dsStackSize: 131072
|
||||
n3dsTargetPlatform: 2
|
||||
n3dsRegion: 7
|
||||
n3dsMediaSize: 0
|
||||
n3dsLogoStyle: 3
|
||||
n3dsTitle: GameName
|
||||
n3dsProductCode:
|
||||
n3dsApplicationId: 0xFF3FF
|
||||
stvDeviceAddress:
|
||||
stvProductDescription:
|
||||
stvProductAuthor:
|
||||
@ -407,7 +476,6 @@ PlayerSettings:
|
||||
additionalIl2CppArgs::additionalIl2CppArgs:
|
||||
firstStreamedSceneWithResources: 0
|
||||
cloudProjectId:
|
||||
projectId:
|
||||
projectName:
|
||||
organizationId:
|
||||
cloudEnabled: 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user