File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -966,9 +966,9 @@ RectTransform:
966966 m_Father : {fileID: 1129181807}
967967 m_RootOrder : -1
968968 m_LocalEulerAnglesHint : {x: 0, y: 0, z: 0}
969- m_AnchorMin : {x: 0.5, y: 0 }
970- m_AnchorMax : {x: 0.5, y: 0 }
971- m_AnchoredPosition : {x: -0, y: 285 }
969+ m_AnchorMin : {x: 0.5, y: 1 }
970+ m_AnchorMax : {x: 0.5, y: 1 }
971+ m_AnchoredPosition : {x: -0, y: -60 }
972972 m_SizeDelta : {x: 302.11, y: 81.22}
973973 m_Pivot : {x: 0.5, y: 0.5}
974974--- !u!114 &1530266491
Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ public class CrateController : MonoBehaviour {
66 AudioSource audioSource ;
77 GameController gameController ;
88
9- [ DllImport ( "__Internal" ) ]
10- static extern void ClickedCrate ( ) ;
11-
129 void Awake ( ) {
1310 gameController = Object . FindObjectOfType < GameController > ( ) ;
1411 animator = GetComponent < Animator > ( ) ;
@@ -22,8 +19,5 @@ void OnMouseDown () {
2219 gameController . score += 1 ;
2320 animator . SetTrigger ( "Clicked" ) ;
2421 audioSource . Play ( ) ;
25- #if UNITY_WEBGL && ! UNITY_EDITOR
26- ClickedCrate ( ) ;
27- #endif
2822 }
2923}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ public class GameController : MonoBehaviour {
77 public int score ;
88
99 [ DllImport ( "__Internal" ) ]
10- static extern void GameOver ( int time , int score ) ;
10+ static extern void GameOver ( float time , int score ) ;
1111
1212
1313 void Awake ( ) {
@@ -26,4 +26,10 @@ void Update () {
2626#endif
2727 }
2828 }
29+
30+ public void StartGame ( int time ) {
31+ this . time = time ;
32+ score = 0 ;
33+ isPlaying = true ;
34+ }
2935}
You can’t perform that action at this time.
0 commit comments