mirror of
https://github.com/ConjureETS/OuijaMTLGJ2016.git
synced 2026-03-26 11:11:07 +00:00
Merge branch 'master' of https://github.com/ConjureETS/OuijaMTLGJ2016
This commit is contained in:
commit
00cc176081
52
Assets/prefabs/GUIManager.prefab
Normal file
52
Assets/prefabs/GUIManager.prefab
Normal file
@ -0,0 +1,52 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &155010
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 401702}
|
||||
- 114: {fileID: 11451600}
|
||||
m_Layer: 0
|
||||
m_Name: GUIManager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &401702
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 155010}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 227.282471, y: 81.0362015, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
--- !u!114 &11451600
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 155010}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f64ee281a9baddc40a746420c5bb884f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !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: 155010}
|
||||
m_IsPrefabParent: 1
|
||||
8
Assets/prefabs/GUIManager.prefab.meta
Normal file
8
Assets/prefabs/GUIManager.prefab.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 10be2fb46e4285942b2957ae293fd714
|
||||
timeCreated: 1454247986
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -255,7 +255,7 @@ Transform:
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 377027947}
|
||||
m_LocalRotation: {x: .707106709, y: -1.42108547e-14, z: -1.42108547e-14, w: .707106829}
|
||||
m_LocalPosition: {x: -3.54999995, y: 14.7600002, z: -32.4900017}
|
||||
m_LocalPosition: {x: 3.53999996, y: 31.0900002, z: -37.0800018}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
@ -502,7 +502,7 @@ Transform:
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1903459893}
|
||||
m_LocalRotation: {x: .612653315, y: .0739248246, z: .0576999038, w: .784768701}
|
||||
m_LocalPosition: {x: 4.05999994, y: 8.14000034, z: -31.3700008}
|
||||
m_LocalPosition: {x: -1.55999994, y: 8.14000034, z: -38.8199997}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
|
||||
@ -65,7 +65,6 @@ LightmapSettings:
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightmapSnapshot: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &4
|
||||
@ -85,6 +84,9 @@ NavMeshSettings:
|
||||
cellSize: .166666672
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!127 &5
|
||||
LevelGameManager:
|
||||
m_ObjectHideFlags: 0
|
||||
--- !u!1 &16934334
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -459,7 +461,6 @@ Camera:
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
@ -593,7 +594,9 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
xScale: 2.79999995
|
||||
yScale: 2.79999995
|
||||
dimension: .720000029
|
||||
colSpacing: 0
|
||||
rowSpacing: 0
|
||||
dimension: 1
|
||||
hexagon: {fileID: 118646, guid: 950731e814d3ade4c91c128681c35ce2, type: 2}
|
||||
PlayerColors:
|
||||
- {r: .448275924, g: 1, b: 0, a: 1}
|
||||
@ -606,7 +609,7 @@ Transform:
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1173224166}
|
||||
m_LocalRotation: {x: .707106829, y: 0, z: 0, w: .707106709}
|
||||
m_LocalPosition: {x: -22.5, y: -0, z: -2.74000001}
|
||||
m_LocalPosition: {x: -23, y: -0, z: 10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
@ -1114,7 +1117,7 @@ Transform:
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1374790521}
|
||||
m_LocalRotation: {x: 0, y: .707106829, z: 0, w: .707106709}
|
||||
m_LocalPosition: {x: 4.65999985, y: 1.46200013, z: 3.53900003}
|
||||
m_LocalPosition: {x: 4.65999985, y: 1.46200013, z: 2.70000005}
|
||||
m_LocalScale: {x: .200000003, y: 6, z: 18}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1944057160}
|
||||
@ -2197,6 +2200,226 @@ Prefab:
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5995724, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 2.36985193e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5995724, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.y
|
||||
value: -1.24000549
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5995724, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: 2.03197669e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5995028, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 1.09475582e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5995028, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: 7.16499997e-08
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5991708, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 1.99487522e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5991708, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: 8.34955642e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5990032, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 2.73828027e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5990032, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: -9.16678573e-08
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5989208, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: -1.96249289e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5989208, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.y
|
||||
value: 1.57999945
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5989208, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: -.141496658
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5987272, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 9.10650044e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5987272, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: -9.16689942e-08
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5984972, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: -5.58595502e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5984972, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: -2.05027413e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5975630, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 1.67725545e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5975630, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.y
|
||||
value: -1.38999176
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5975630, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: -5.60157389e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5975472, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 4.09336371e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5975472, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.y
|
||||
value: -1.38998413
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5975472, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: 4.13718499e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5968422, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 9.22213985e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5968110, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 1.61266485e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5968110, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: -7.45058105e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5966534, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 1.38189193e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5966534, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.y
|
||||
value: -1.3599968
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5966534, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: 8.19955676e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5959588, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 2.18657283e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5959588, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.y
|
||||
value: -1.27000427
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5959588, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: 3.38662858e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5956290, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: -.000424422324
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5956290, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.y
|
||||
value: 1.57999897
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5956290, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: -.114237666
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5950970, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 3.69365398e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5950970, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: 1.50880339e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5950628, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 2.12233613e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5950628, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: 1.14638922e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5949202, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 2.3415808e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5949202, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: 2.79338474e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5948580, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 9.07083461e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5948580, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: -1.60923082e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5946966, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: -7.42570876e-08
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5946966, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: 1.54151564e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5933246, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 4.459867e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5933246, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: 2.292619e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5932448, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 3.00177248e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5932448, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: -4.25080088e-06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5930116, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: 5.66325127e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5930116, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: 7.15386544e-14
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5928330, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: .00855574757
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5928330, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.y
|
||||
value: 1.57999897
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5928330, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: -.22732614
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5927204, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.x
|
||||
value: -2.07060964e-07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5927204, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
propertyPath: m_ConnectedAnchor.z
|
||||
value: 2.86692966e-06
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 435740a68d38e76438007304b084ccf7, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
@ -2311,6 +2534,30 @@ Prefab:
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 10828902, guid: 09a2e2e70f49c4330831bd4f733bbdb4, type: 2}
|
||||
propertyPath: m_Range
|
||||
value: 238.649155
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 10872598, guid: 09a2e2e70f49c4330831bd4f733bbdb4, type: 2}
|
||||
propertyPath: m_Range
|
||||
value: 280.692017
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 10833872, guid: 09a2e2e70f49c4330831bd4f733bbdb4, type: 2}
|
||||
propertyPath: m_Range
|
||||
value: 252.96521
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 169668, guid: 09a2e2e70f49c4330831bd4f733bbdb4, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: Spotlight_red (left)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 149990, guid: 09a2e2e70f49c4330831bd4f733bbdb4, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: Spotlight _yellow (top)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 190240, guid: 09a2e2e70f49c4330831bd4f733bbdb4, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: Spotlight_blue (right)
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 09a2e2e70f49c4330831bd4f733bbdb4, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
|
||||
70
Assets/scripts/GUIGameplay.cs
Normal file
70
Assets/scripts/GUIGameplay.cs
Normal file
@ -0,0 +1,70 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class GUIGameplay : MonoBehaviour {
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
|
||||
}
|
||||
void OnGUI()
|
||||
{
|
||||
|
||||
// Make the first button. If it is pressed, Application.Loadlevel (1) will be executed
|
||||
for(int i = 0; i<GameState.Instance.players.Length;++i)
|
||||
{
|
||||
Color temp = GUI.color;
|
||||
string playerName = "";
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
GUI.color = new Color(1, 1, 0, 0.5f);
|
||||
playerName = "Yellow beard";
|
||||
break;
|
||||
case 1:
|
||||
GUI.color = new Color(1,0 , 0, 0.5f);
|
||||
playerName = "Red beard";
|
||||
break;
|
||||
case 2:
|
||||
GUI.color = new Color(0, 0, 1, 0.5f);
|
||||
playerName = "Black beard";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
GUI.Box(new Rect(10+ Screen.width /3 * i , 10, 200, 90), playerName);
|
||||
GUI.color = temp;
|
||||
Player p = GameState.Instance.players[i];
|
||||
|
||||
for (int j = 0;j< p.letters.Length;++j)
|
||||
{
|
||||
char character = (char) p.letters[j];
|
||||
//Debug.Log(character);
|
||||
Texture2D rune = Resources.Load<Texture2D>("runic_" + (char)('a' + character));
|
||||
// Debug.Log(p.score);
|
||||
if (j+1 > p.index)
|
||||
{
|
||||
|
||||
temp = GUI.color ;
|
||||
GUI.color = new Color(1f, 1f, 1f, 0.50f);
|
||||
GUI.DrawTexture(new Rect(20 + Screen.width / 3 * i + j * 30 + 20, 40, 30, 30), rune);
|
||||
GUI.color = temp;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
GUI.DrawTexture(new Rect(20 + Screen.width / 3 * i + j * 30 + 20, 40, 30, 30), rune);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
12
Assets/scripts/GUIGameplay.cs.meta
Normal file
12
Assets/scripts/GUIGameplay.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f64ee281a9baddc40a746420c5bb884f
|
||||
timeCreated: 1454244894
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -10,8 +10,8 @@ public class GameState {
|
||||
|
||||
public int numPlayers = 3;
|
||||
public int wordLength = 5;
|
||||
public int numRows = 50;
|
||||
public int numColumns = 30;
|
||||
public int numRows = 12;
|
||||
public int numColumns = 8;
|
||||
public Player[] players;
|
||||
|
||||
private GameState()
|
||||
|
||||
@ -8,6 +8,9 @@ public class LevelManager : MonoBehaviour {
|
||||
|
||||
public float xScale = 1f;
|
||||
public float yScale = 0.8f;
|
||||
public float colSpacing = 0f;
|
||||
public float rowSpacing = 0f;
|
||||
|
||||
public float dimension = 0.6f;
|
||||
public GameObject hexagon;
|
||||
public Color[] PlayerColors;
|
||||
@ -53,8 +56,8 @@ public class LevelManager : MonoBehaviour {
|
||||
hex.transform.localScale = new Vector3(xScale, yScale, 1f);
|
||||
|
||||
hex.transform.localPosition = new Vector3(
|
||||
(3f * dimension * col + 1.5f * dimension * (row % 2)) * xScale - xOffset,
|
||||
(row * ratio * dimension) * yScale - yOffset, 0f);
|
||||
((3f+colSpacing) * dimension * col + 1.5f * dimension * (row % 2)) * xScale - xOffset,
|
||||
(row * (ratio * dimension + rowSpacing)) * yScale - yOffset, 0f);
|
||||
|
||||
hex.transform.localRotation = Quaternion.identity;
|
||||
|
||||
|
||||
@ -15,22 +15,6 @@ public class RuneBehaviour : MonoBehaviour {
|
||||
|
||||
private Character currentCharacter;
|
||||
|
||||
void Update ()
|
||||
{
|
||||
if (sign == 0f) return;
|
||||
|
||||
elapsedTime += Time.deltaTime * sign;
|
||||
|
||||
float ratio = elapsedTime / LightTime;
|
||||
|
||||
symbol.color = Color.Lerp(DefaultColor, targetColor, ratio);
|
||||
|
||||
if (ratio < 0f || ratio > 1f)
|
||||
{
|
||||
sign = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
float col = 80f/255f; // Random.value;
|
||||
@ -72,8 +56,12 @@ public class RuneBehaviour : MonoBehaviour {
|
||||
|
||||
while (ratio < 1f)
|
||||
{
|
||||
ratio += Time.deltaTime / LightTime;
|
||||
symbol.color = Color.Lerp(startColor, DefaultColor, ratio);
|
||||
// Hack
|
||||
if (enabled)
|
||||
{
|
||||
ratio += Time.deltaTime / LightTime;
|
||||
symbol.color = Color.Lerp(startColor, DefaultColor, ratio);
|
||||
}
|
||||
|
||||
yield return null;
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using XInputDotNetPure;
|
||||
|
||||
[RequireComponent(typeof(Rigidbody))]
|
||||
public class SelectorWithBolts : MonoBehaviour
|
||||
@ -94,5 +95,26 @@ public class SelectorWithBolts : MonoBehaviour
|
||||
|
||||
yield return null;
|
||||
}
|
||||
|
||||
StartCoroutine(VibrateController(playerId));
|
||||
}
|
||||
|
||||
private IEnumerator VibrateController(int playerId)
|
||||
{
|
||||
GamePad.SetVibration((PlayerIndex)playerId, 1f, 1f);
|
||||
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
|
||||
GamePad.SetVibration((PlayerIndex)playerId, 0f, 0f);
|
||||
}
|
||||
|
||||
void OnApplicationQuit()
|
||||
{
|
||||
// In case the coroutine was still running when we closed the game
|
||||
|
||||
for (int i = 0; i < Bolts.Length; i++)
|
||||
{
|
||||
GamePad.SetVibration((PlayerIndex)i, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,7 +8,6 @@ PlayerSettings:
|
||||
defaultScreenOrientation: 4
|
||||
targetDevice: 2
|
||||
targetResolution: 0
|
||||
useOnDemandResources: 0
|
||||
accelerometerFrequency: 60
|
||||
companyName: DefaultCompany
|
||||
productName: GameJamProject
|
||||
@ -29,7 +28,6 @@ PlayerSettings:
|
||||
androidShowActivityIndicatorOnLoading: -1
|
||||
iosAppInBackgroundBehavior: 0
|
||||
displayResolutionDialog: 1
|
||||
iosAllowHTTPDownload: 1
|
||||
allowedAutorotateToPortrait: 1
|
||||
allowedAutorotateToPortraitUpsideDown: 1
|
||||
allowedAutorotateToLandscapeRight: 1
|
||||
@ -62,23 +60,11 @@ 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
|
||||
@ -91,26 +77,20 @@ 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
|
||||
@ -137,15 +117,6 @@ 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}
|
||||
@ -165,23 +136,6 @@ 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
|
||||
@ -232,20 +186,15 @@ 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
|
||||
@ -253,14 +202,6 @@ 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:
|
||||
@ -309,6 +250,7 @@ PlayerSettings:
|
||||
psp2InfoBarOnStartup: 0
|
||||
psp2InfoBarColor: 0
|
||||
psmSplashimage: {fileID: 0}
|
||||
virtualRealitySupported: 0
|
||||
spritePackerPolicy:
|
||||
scriptingDefineSymbols: {}
|
||||
metroPackageName: GameJamProject
|
||||
@ -400,17 +342,6 @@ 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:
|
||||
@ -476,6 +407,7 @@ PlayerSettings:
|
||||
additionalIl2CppArgs::additionalIl2CppArgs:
|
||||
firstStreamedSceneWithResources: 0
|
||||
cloudProjectId:
|
||||
projectId:
|
||||
projectName:
|
||||
organizationId:
|
||||
cloudEnabled: 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user