Skip to content

Commit

Permalink
adding winner message text
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristyanS committed Apr 25, 2021
1 parent 8462c15 commit c9f63cc
Show file tree
Hide file tree
Showing 4 changed files with 217 additions and 27 deletions.
4 changes: 2 additions & 2 deletions Assets/Scenes/Menu.unity
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -120.08, y: 7.3}
m_SizeDelta: {x: 150.15753, y: 53.08922}
m_AnchoredPosition: {x: -151.48637, y: 7.3}
m_SizeDelta: {x: 212.9703, y: 53.0892}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &308332967
MonoBehaviour:
Expand Down
219 changes: 210 additions & 9 deletions Assets/Scenes/Prototype.unity
Original file line number Diff line number Diff line change
Expand Up @@ -2038,7 +2038,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 172115105}
m_LocalRotation: {x: 0.018189492, y: -0.000000014901161, z: -2.3283064e-10, w: 0.99983466}
m_LocalRotation: {x: 0.018189494, y: -0, z: 4.656613e-10, w: 0.99983466}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
Expand Down Expand Up @@ -3729,7 +3729,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 297761509}
m_LocalRotation: {x: -0.000000001877197, y: -0, z: -0, w: 1}
m_LocalRotation: {x: -1.1641531e-10, y: -0.000000014901159, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
Expand Down Expand Up @@ -12259,7 +12259,7 @@ Mesh:
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: pb_Mesh85168
m_Name: pb_Mesh70374
serializedVersion: 10
m_SubMeshes:
- serializedVersion: 2
Expand Down Expand Up @@ -15814,7 +15814,7 @@ Mesh:
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: pb_Mesh84248
m_Name: pb_Mesh69462
serializedVersion: 10
m_SubMeshes:
- serializedVersion: 2
Expand Down Expand Up @@ -27926,7 +27926,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1095760606}
m_LocalRotation: {x: -0.01814146, y: -0.000000007450581, z: -8.1490725e-10, w: 0.9998355}
m_LocalRotation: {x: -0.018141454, y: -0.000000044703484, z: -6.9849193e-10, w: 0.9998355}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
Expand Down Expand Up @@ -29722,6 +29722,82 @@ Transform:
m_Father: {fileID: 1259480941}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1205611921
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1205611922}
- component: {fileID: 1205611924}
- component: {fileID: 1205611923}
m_Layer: 5
m_Name: Victory_Panel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &1205611922
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1205611921}
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:
- {fileID: 2040214505}
m_Father: {fileID: 1288295580}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.3791235}
m_AnchorMax: {x: 1, y: 0.6235309}
m_AnchoredPosition: {x: -0.5, y: -0.5}
m_SizeDelta: {x: 2, y: 1}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1205611923
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1205611921}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0.49019608}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &1205611924
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1205611921}
m_CullTransparentMesh: 0
--- !u!4 &1206367584 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 2508086399684619497, guid: 556fb215c04ed06498311ab6aba2e683, type: 3}
Expand Down Expand Up @@ -30861,7 +30937,7 @@ GameObject:
- component: {fileID: 1265553646}
- component: {fileID: 1265553645}
m_Layer: 5
m_Name: Image
m_Name: Loose_Panel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
Expand Down Expand Up @@ -31617,6 +31693,7 @@ RectTransform:
m_Children:
- {fileID: 1265553644}
- {fileID: 1567073294}
- {fileID: 1205611922}
m_Father: {fileID: 0}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
Expand Down Expand Up @@ -35779,7 +35856,7 @@ Mesh:
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: pb_Mesh83546
m_Name: pb_Mesh68760
serializedVersion: 10
m_SubMeshes:
- serializedVersion: 2
Expand Down Expand Up @@ -44399,6 +44476,7 @@ GameObject:
m_Component:
- component: {fileID: 1974060223}
- component: {fileID: 1974060222}
- component: {fileID: 1974060224}
m_Layer: 2
m_Name: Checkpoint
m_TagString: Finish
Expand Down Expand Up @@ -44433,6 +44511,48 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 10
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1974060224
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1974060221}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 943767046d516f64ebcc8f870b809205, type: 3}
m_Name:
m_EditorClassIdentifier:
MyGamesTriggerEnter:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1205611921}
m_TargetAssemblyTypeName: UnityEngine.GameObject, UnityEngine
m_MethodName: SetActive
m_Mode: 6
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 1
m_CallState: 2
MyGamesTriggerStay:
m_PersistentCalls:
m_Calls: []
MyGamesTriggerExit:
m_PersistentCalls:
m_Calls: []
MyGamesCollisionEnter:
m_PersistentCalls:
m_Calls: []
MyGamesCollisionStay:
m_PersistentCalls:
m_Calls: []
MyGamesCollisionExit:
m_PersistentCalls:
m_Calls: []
--- !u!4 &1980894357 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 2293540830936968300, guid: 48ff06246188ddf44915485ba6e197e3, type: 3}
Expand Down Expand Up @@ -50316,6 +50436,87 @@ Transform:
m_CorrespondingSourceObject: {fileID: 3156274093318277098, guid: b66c18c37900c2b45a5a1565615ba3da, type: 3}
m_PrefabInstance: {fileID: 1568916037}
m_PrefabAsset: {fileID: 0}
--- !u!1 &2040214504
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2040214505}
- component: {fileID: 2040214507}
- component: {fileID: 2040214506}
m_Layer: 5
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2040214505
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2040214504}
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: 1205611922}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 1049, y: 264.96}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2040214506
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2040214504}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 0.83105856, b: 0.062745094, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: 277756ff0d3cd2049bce9aa296ed8d5b, type: 3}
m_FontSize: 60
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 5
m_MaxSize: 60
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: 'Congrats

You Win!'
--- !u!222 &2040214507
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2040214504}
m_CullTransparentMesh: 0
--- !u!1 &2040494187
GameObject:
m_ObjectHideFlags: 1
Expand Down Expand Up @@ -51133,8 +51334,8 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2096103894}
m_LocalRotation: {x: -0.0017273299, y: 0.99531615, z: 0.01810729, w: 0.09494736}
m_LocalPosition: {x: -2.035419, y: 27.652927, z: -39.940742}
m_LocalRotation: {x: 0.0031687287, y: 0.98454624, z: 0.01791136, w: -0.17417775}
m_LocalPosition: {x: -1.2371888, y: 27.652927, z: -40.00473}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 172115106}
Expand Down
13 changes: 1 addition & 12 deletions Assets/Scripts/Behaviours/UI/LevelView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,7 @@ private void Update()
SceneManager.LoadScene(scene);
VirtualInputManager.Instance.EnableAllControls(true);
}

if (Input.GetKey(KeyCode.Alpha1))
{
SceneManager.LoadScene(1);
VirtualInputManager.Instance.EnableAllControls(true);
}

if (Input.GetKey(KeyCode.Alpha2))
{
SceneManager.LoadScene(2);
VirtualInputManager.Instance.EnableAllControls(true);
}

}
}
}
8 changes: 4 additions & 4 deletions UserSettings/EditorUserSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ EditorUserSettings:
serializedVersion: 4
m_ConfigSettings:
RecentlyUsedScenePath-0:
value: 22424703114646680e0b0227036c72151802563f22213229
value: 22424703114646680e0b0227036c6b150503563f22213229
flags: 0
RecentlyUsedScenePath-1:
value: 22424703114646680e0b0227036c6b150503563f22213229
value: 22424703114646680e0b0227036c6b0502180a232d2468252320092a
flags: 0
RecentlyUsedScenePath-2:
value: 22424703114646680e0b0227036c6b0502180a232d2468252320092a
value: 22424703114646680e0b0227036c6f021903173e3538237e38271427fb
flags: 0
RecentlyUsedScenePath-3:
value: 22424703114646680e0b0227036c6f021903173e3538237e38271427fb
value: 22424703114646680e0b0227036c72151802563f22213229
flags: 0
UnityEditor.ShaderGraph.FloatingWindowsLayout2:
value: 181344140043005e1a220d3b1f364b524c0c5a27130c293326201334cee5322ca0bd30e8eb293a707b0fd0180b3d0a36fc0d3d04e649500d1002ee0b5dbd1d2c27c00ad113cb1e10e41f1addc80993b98d9884a69ae6d8f0d1cda9e8fbfefaf9f9dea3fdb9ade882f0f7b0e1e380cafbf2c3adc18e9cd285a2908b82ec869c8395949c9483d68a8e97ddbd90eed2a5a892a2af949aa48bafb19f85bd75a7ed3a7d25658598b7b58bb4b76aaf777690ca2863946c72c6cd81b6b6708f9f879f88769589d91c8f888e64d20f935e796571755c6b546677696a486c781c073d6f23696429450074652134203e56454c514e4352305f78621e1e6a730c0c00615e4e54185d4f1e4e1b0d5875746d5e6f603a6b7c47707a5978363400
Expand Down

0 comments on commit c9f63cc

Please sign in to comment.