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