File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,6 @@ MonoBehaviour:
270
270
m_Script : {fileID: 11500000, guid: ae79f9d99372a6b438f800230f434b9d, type: 3}
271
271
m_Name :
272
272
m_EditorClassIdentifier :
273
- player : {fileID: 527830928}
274
273
scoreText : {fileID: 1474871343}
275
274
playButton : {fileID: 892178073}
276
275
gameOver : {fileID: 298509898}
Original file line number Diff line number Diff line change 1
- using UnityEngine ;
1
+ using UnityEngine ;
2
2
using UnityEngine . UI ;
3
3
4
4
public class GameManager : MonoBehaviour
5
5
{
6
- public Player player ;
6
+ private Player player ;
7
+ private Spawner spawner ;
8
+
7
9
public Text scoreText ;
8
10
public GameObject playButton ;
9
11
public GameObject gameOver ;
@@ -13,6 +15,9 @@ private void Awake()
13
15
{
14
16
Application . targetFrameRate = 60 ;
15
17
18
+ player = FindObjectOfType < Player > ( ) ;
19
+ spawner = FindObjectOfType < Spawner > ( ) ;
20
+
16
21
Pause ( ) ;
17
22
}
18
23
You can’t perform that action at this time.
0 commit comments