Ejemplo n.º 1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Ejemplo n.º 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>();
 }
Ejemplo n.º 3
0
 private void Awake()
 {
     instance = this;
 }
Ejemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     targetPooler = TargetPooler.instance;
     InvokeRepeating("Spawn", 5f, 3f);
 }