Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gstuitje
RingMaster
Commits
f6ea3f37
Commit
f6ea3f37
authored
Jan 19, 2019
by
mmaluschnig
Browse files
added score and combo functionality but Simons turn button broke
parent
d86db40e
Changes
5
Hide whitespace changes
Inline
Side-by-side
RingMaster/RingMaster/Assets/Scenes/SimonTheBear.unity
View file @
f6ea3f37
...
...
@@ -216,10 +216,10 @@ RectTransform:
m_GameObject
:
{
fileID
:
35780933
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
0.999878
05
,
y
:
0.999878
05
,
z
:
0.999878
05
}
m_LocalScale
:
{
x
:
0.999878
17
,
y
:
0.999878
17
,
z
:
0.999878
17
}
m_Children
:
-
{
fileID
:
857273188
}
m_Father
:
{
fileID
:
1997423556
}
m_Father
:
{
fileID
:
963558060
}
m_RootOrder
:
4
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0.5
}
...
...
@@ -367,10 +367,10 @@ RectTransform:
m_GameObject
:
{
fileID
:
102288113
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
0.999878
05
,
y
:
0.999878
05
,
z
:
0.999878
05
}
m_LocalScale
:
{
x
:
0.999878
17
,
y
:
0.999878
17
,
z
:
0.999878
17
}
m_Children
:
-
{
fileID
:
201257243
}
m_Father
:
{
fileID
:
1997423556
}
m_Father
:
{
fileID
:
963558060
}
m_RootOrder
:
2
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0.5
}
...
...
@@ -717,6 +717,81 @@ CanvasRenderer:
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
393041712
}
m_CullTransparentMesh
:
0
---
!u!1
&396655441
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
396655442
}
-
component
:
{
fileID
:
396655443
}
-
component
:
{
fileID
:
396655444
}
m_Layer
:
5
m_Name
:
Score
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!224
&396655442
RectTransform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
396655441
}
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
:
1902210716
}
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
:
-332
,
y
:
211
}
m_SizeDelta
:
{
x
:
160
,
y
:
30
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!222
&396655443
CanvasRenderer
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
396655441
}
m_CullTransparentMesh
:
0
---
!u!114
&396655444
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
396655441
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
708705254
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData
:
m_Font
:
{
fileID
:
10102
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
m_FontSize
:
26
m_FontStyle
:
0
m_BestFit
:
0
m_MinSize
:
10
m_MaxSize
:
40
m_Alignment
:
4
m_AlignByGeometry
:
0
m_RichText
:
1
m_HorizontalOverflow
:
0
m_VerticalOverflow
:
0
m_LineSpacing
:
1
m_Text
:
'
Score:
0'
---
!u!1
&609324337
GameObject
:
m_ObjectHideFlags
:
0
...
...
@@ -909,12 +984,12 @@ RectTransform:
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
896526786
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
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
:
1526102465
}
m_Father
:
{
fileID
:
1997423556
}
m_Father
:
{
fileID
:
963558060
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0.5
}
...
...
@@ -1008,6 +1083,81 @@ CanvasRenderer:
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
896526786
}
m_CullTransparentMesh
:
0
---
!u!1
&963558059
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
963558060
}
-
component
:
{
fileID
:
963558062
}
-
component
:
{
fileID
:
963558061
}
m_Layer
:
5
m_Name
:
Keys
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!224
&963558060
RectTransform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
963558059
}
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
:
896526787
}
-
{
fileID
:
1220043471
}
-
{
fileID
:
102288114
}
-
{
fileID
:
2131334772
}
-
{
fileID
:
35780934
}
-
{
fileID
:
1983109106
}
m_Father
:
{
fileID
:
1997423556
}
m_RootOrder
:
1
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
0
}
m_AnchorMax
:
{
x
:
1
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!114
&963558061
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
963558059
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-765806418
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
0
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite
:
{
fileID
:
10907
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_Type
:
1
m_PreserveAspect
:
0
m_FillCenter
:
1
m_FillMethod
:
4
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
---
!u!222
&963558062
CanvasRenderer
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
963558059
}
m_CullTransparentMesh
:
0
---
!u!1
&1220043470
GameObject
:
m_ObjectHideFlags
:
0
...
...
@@ -1034,10 +1184,10 @@ RectTransform:
m_GameObject
:
{
fileID
:
1220043470
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
0.999878
05
,
y
:
0.999878
05
,
z
:
0.999878
05
}
m_LocalScale
:
{
x
:
0.999878
17
,
y
:
0.999878
17
,
z
:
0.999878
17
}
m_Children
:
-
{
fileID
:
2066860502
}
m_Father
:
{
fileID
:
1997423556
}
m_Father
:
{
fileID
:
963558060
}
m_RootOrder
:
1
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0.5
}
...
...
@@ -1461,6 +1611,81 @@ CanvasRenderer:
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1616255996
}
m_CullTransparentMesh
:
0
---
!u!1
&1630911584
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
1630911587
}
-
component
:
{
fileID
:
1630911586
}
-
component
:
{
fileID
:
1630911585
}
m_Layer
:
5
m_Name
:
Combo
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!114
&1630911585
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1630911584
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
708705254
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData
:
m_Font
:
{
fileID
:
10102
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
m_FontSize
:
26
m_FontStyle
:
0
m_BestFit
:
0
m_MinSize
:
10
m_MaxSize
:
40
m_Alignment
:
4
m_AlignByGeometry
:
0
m_RichText
:
1
m_HorizontalOverflow
:
0
m_VerticalOverflow
:
0
m_LineSpacing
:
1
m_Text
:
'
Combo:
0'
---
!u!222
&1630911586
CanvasRenderer
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1630911584
}
m_CullTransparentMesh
:
0
---
!u!224
&1630911587
RectTransform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1630911584
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
0.99987805
,
y
:
0.99987805
,
z
:
0.99987805
}
m_Children
:
[]
m_Father
:
{
fileID
:
1902210716
}
m_RootOrder
:
1
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
:
-159
,
y
:
211
}
m_SizeDelta
:
{
x
:
160
,
y
:
30
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!1
&1764000903
GameObject
:
m_ObjectHideFlags
:
0
...
...
@@ -1555,6 +1780,77 @@ MonoBehaviour:
rButton
:
{
fileID
:
2131334773
}
tButton
:
{
fileID
:
35780935
}
yButton
:
{
fileID
:
1983109107
}
---
!u!1
&1902210715
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
1902210716
}
-
component
:
{
fileID
:
1902210718
}
-
component
:
{
fileID
:
1902210717
}
m_Layer
:
5
m_Name
:
ScoreStuff
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!224
&1902210716
RectTransform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1902210715
}
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
:
396655442
}
-
{
fileID
:
1630911587
}
m_Father
:
{
fileID
:
1997423556
}
m_RootOrder
:
2
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
0
}
m_AnchorMax
:
{
x
:
1
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!114
&1902210717
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1902210715
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-765806418
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
0
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite
:
{
fileID
:
10907
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_Type
:
1
m_PreserveAspect
:
0
m_FillCenter
:
1
m_FillMethod
:
4
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
---
!u!222
&1902210718
CanvasRenderer
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1902210715
}
m_CullTransparentMesh
:
0
---
!u!1
&1983109105
GameObject
:
m_ObjectHideFlags
:
0
...
...
@@ -1581,10 +1877,10 @@ RectTransform:
m_GameObject
:
{
fileID
:
1983109105
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
0.999878
05
,
y
:
0.999878
05
,
z
:
0.999878
05
}
m_LocalScale
:
{
x
:
0.999878
17
,
y
:
0.999878
17
,
z
:
0.999878
17
}
m_Children
:
-
{
fileID
:
266553159
}
m_Father
:
{
fileID
:
1997423556
}
m_Father
:
{
fileID
:
963558060
}
m_RootOrder
:
5
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0.5
}
...
...
@@ -1763,13 +2059,9 @@ RectTransform:
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_Children
:
-
{
fileID
:
896526787
}
-
{
fileID
:
1220043471
}
-
{
fileID
:
102288114
}
-
{
fileID
:
2131334772
}
-
{
fileID
:
35780934
}
-
{
fileID
:
1983109106
}
-
{
fileID
:
2076225873
}
-
{
fileID
:
963558060
}
-
{
fileID
:
1902210716
}
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
5
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
...
...
@@ -1883,11 +2175,11 @@ RectTransform:
m_Children
:
-
{
fileID
:
1616255997
}
m_Father
:
{
fileID
:
1997423556
}
m_RootOrder
:
6
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
:
21
0
,
y
:
196
}
m_AnchoredPosition
:
{
x
:
21
8
,
y
:
196
}
m_SizeDelta
:
{
x
:
160
,
y
:
30
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!114
&2076225874
...
...
@@ -1976,6 +2268,48 @@ CanvasRenderer:
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2076225872
}
m_CullTransparentMesh
:
0
---
!u!1
&2097374218
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
2097374220
}
-
component
:
{
fileID
:
2097374219
}
m_Layer
:
0
m_Name
:
UIManager
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!114
&2097374219
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2097374218
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
5de4f2786b5924ce7a842fb42c1ba88c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
scoreText
:
{
fileID
:
396655444
}
comboText
:
{
fileID
:
1630911585
}
---
!u!4
&2097374220
Transform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2097374218
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
-0.035020664
,
y
:
0.7587325
,
z
:
-0.095703125
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
7
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1
&2131334771
GameObject
:
m_ObjectHideFlags
:
0
...
...
@@ -2002,10 +2336,10 @@ RectTransform:
m_GameObject
:
{
fileID
:
2131334771
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
0.999878
05
,
y
:
0.999878
05
,
z
:
0.999878
05
}
m_LocalScale
:
{
x
:
0.999878
17
,
y
:
0.999878
17
,
z
:
0.999878
17
}
m_Children
:
-
{
fileID
:
393041713
}
m_Father
:
{
fileID
:
1997423556
}
m_Father
:
{
fileID
:
963558060
}
m_RootOrder
:
3
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0.5
}
...
...
RingMaster/RingMaster/Assets/Scripts/SimonScripts/Note.cs
View file @
f6ea3f37
...
...
@@ -11,6 +11,7 @@ public class Note : MonoBehaviour {
public
float
bobScale
=
0.5f
;
public
string
type
;
public
int
points
=
10
;
private
float
startTime
;
// Use this for initialization
...
...
RingMaster/RingMaster/Assets/Scripts/SimonScripts/SimonGameManager.cs
View file @
f6ea3f37
...
...
@@ -4,8 +4,11 @@ using UnityEngine;
public
class
SimonGameManager
:
MonoBehaviour
{
public
static
Queue
<
GameObject
>
simonNotes
=
new
Queue
<
GameObject
>();
public
static
Queue
<
GameObject
>
simonNotes
=
new
Queue
<
GameObject
>();
public
static
float
score
;
public
static
int
combo
;
public
static
void
SimonPlayed
(
GameObject
note
){
simonNotes
.
Enqueue
(
note
);
}
...
...
@@ -19,11 +22,11 @@ public class SimonGameManager : MonoBehaviour {
if
(
simonNote
.
type
==
playerNote
.
type
)
{
print
(
"GOOD"
);
HitNote
(
playerNote
.
points
);
}
else
{
print
(
"BAD"
);
MissNote
(
);
}
Destroy
(
sNote
);
...
...
@@ -31,4 +34,15 @@ public class SimonGameManager : MonoBehaviour {
print
(
"Dont be hasty master Hobbit"
);
}
}
static
void
HitNote
(
int
points
){
print
(
"GOOD"
);
score
+=
points
;
combo
++;
}
static
void
MissNote
(){
print
(
"BAD"
);
combo
=
0
;
}
}
RingMaster/RingMaster/Assets/Scripts/SimonScripts/UIManager.cs
0 → 100644
View file @
f6ea3f37
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.UI
;
public
class
UIManager
:
MonoBehaviour
{
public
Text
scoreText
;
public
Text
comboText
;
// Use this for initialization
void
Start
()
{
scoreText
.
text
=
"Score: "
+
SimonGameManager
.
score
;
comboText
.
text
=
"Combo: "
+
SimonGameManager
.
combo
;
}
void
Update
()
{
scoreText
.
text
=
"Score: "
+
SimonGameManager
.
score
;
comboText
.
text
=
"Combo: "
+
SimonGameManager
.
combo
;
}
}
RingMaster/RingMaster/Assets/Scripts/SimonScripts/UIManager.cs.meta
0 → 100644
View file @
f6ea3f37
fileFormatVersion: 2
guid: 5de4f2786b5924ce7a842fb42c1ba88c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment