예제 #1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     targetPooler = TargetPooler.instance;
     Invoke("TimeOver", lifetime);
     gcObject = GameObject.Find("GameController");
     gc       = gcObject.GetComponent <GameController>();
 }
예제 #3
0
 private void Awake()
 {
     instance = this;
 }
예제 #4
0
 // Start is called before the first frame update
 void Start()
 {
     targetPooler = TargetPooler.instance;
     InvokeRepeating("Spawn", 5f, 3f);
 }