Antoine GameBoard + Panel

This commit is contained in:
unknown 2015-08-13 19:27:07 -04:00
parent b3499addc0
commit 60db101ce2
10 changed files with 36231 additions and 117 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 69fe9491767156248a652d9f4ad9374a
timeCreated: 1439494353
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: dc8046baf857b4140914bf2f53d4740d
timeCreated: 1439493992
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -87,101 +87,47 @@ NavMeshSettings:
cellSize: .166666672
manualCellSize: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &433953797
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 433953799}
- 212: {fileID: 433953798}
m_Layer: 0
m_Name: Bakcground
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!212 &433953798
SpriteRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 433953797}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000e000000000000000, type: 0}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 1
m_ReflectionProbeUsage: 1
m_ProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 0
m_ImportantGI: 0
m_AutoUVMaxDistance: .5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingOrder: -1
m_Sprite: {fileID: 21300000, guid: 03310a8200613c8458f91f05be6d82d2, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
--- !u!4 &433953799
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 433953797}
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_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
--- !u!1001 &1077754445
--- !u!1001 &454098392
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 494730, guid: e29ed8143ef4d7246ade0b7422726971, type: 2}
- target: {fileID: 460810, guid: 69fe9491767156248a652d9f4ad9374a, type: 2}
propertyPath: m_LocalPosition.x
value: -279.655579
value: -67.4717407
objectReference: {fileID: 0}
- target: {fileID: 494730, guid: e29ed8143ef4d7246ade0b7422726971, type: 2}
- target: {fileID: 460810, guid: 69fe9491767156248a652d9f4ad9374a, type: 2}
propertyPath: m_LocalPosition.y
value: -60.679348
value: 44.3748474
objectReference: {fileID: 0}
- target: {fileID: 494730, guid: e29ed8143ef4d7246ade0b7422726971, type: 2}
- target: {fileID: 460810, guid: 69fe9491767156248a652d9f4ad9374a, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494730, guid: e29ed8143ef4d7246ade0b7422726971, type: 2}
- target: {fileID: 460810, guid: 69fe9491767156248a652d9f4ad9374a, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494730, guid: e29ed8143ef4d7246ade0b7422726971, type: 2}
- target: {fileID: 460810, guid: 69fe9491767156248a652d9f4ad9374a, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494730, guid: e29ed8143ef4d7246ade0b7422726971, type: 2}
- target: {fileID: 460810, guid: 69fe9491767156248a652d9f4ad9374a, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494730, guid: e29ed8143ef4d7246ade0b7422726971, type: 2}
- target: {fileID: 460810, guid: 69fe9491767156248a652d9f4ad9374a, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 494730, guid: e29ed8143ef4d7246ade0b7422726971, type: 2}
- target: {fileID: 460810, guid: 69fe9491767156248a652d9f4ad9374a, type: 2}
propertyPath: m_RootOrder
value: 2
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: e29ed8143ef4d7246ade0b7422726971, type: 2}
m_ParentPrefab: {fileID: 100100000, guid: 69fe9491767156248a652d9f4ad9374a, type: 2}
m_IsPrefabParent: 0
--- !u!1 &1255384573
GameObject:
@ -268,45 +214,3 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!1001 &1800032770
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 443136, guid: c72ab7bf5b2cd13459155c9ea9f6acb1, type: 2}
propertyPath: m_LocalPosition.x
value: 14.4983673
objectReference: {fileID: 0}
- target: {fileID: 443136, guid: c72ab7bf5b2cd13459155c9ea9f6acb1, type: 2}
propertyPath: m_LocalPosition.y
value: 23.5802021
objectReference: {fileID: 0}
- target: {fileID: 443136, guid: c72ab7bf5b2cd13459155c9ea9f6acb1, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 443136, guid: c72ab7bf5b2cd13459155c9ea9f6acb1, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 443136, guid: c72ab7bf5b2cd13459155c9ea9f6acb1, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 443136, guid: c72ab7bf5b2cd13459155c9ea9f6acb1, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 443136, guid: c72ab7bf5b2cd13459155c9ea9f6acb1, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 443136, guid: c72ab7bf5b2cd13459155c9ea9f6acb1, type: 2}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: c72ab7bf5b2cd13459155c9ea9f6acb1, type: 2}
m_IsPrefabParent: 0

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 92407044458d8d84186001acfac6326b
guid: adc97c3ddc2c5a949b950160e1b08077
timeCreated: 1439486839
licenseType: Free
DefaultImporter:

10209
Assets/SceneAntoine.unity Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 92407044458d8d84186001acfac6326b
timeCreated: 1439493989
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -6,20 +6,17 @@ public class ConstructionBehaviour : MonoBehaviour {
public int ConstructionType =-1 ;
public GameObject maisonHumain;
public GameObject maisonZombie;
public GameObject champ;
private GameObject SwitchPrefab;
void OnMouseDown()
{
int.TryParse(Input.inputString, out ConstructionType);
if (ConstructionType == -1)
int.TryParse(Input.inputString, out ConstructionType);
switch (ConstructionType) {
case 1:
SwitchPrefab = maisonHumain;
break;
case 2:
SwitchPrefab = champ;
break;
case 3:
SwitchPrefab = maisonZombie;
break;
default: