// Start is called before the first frame update void Start() { rb = GetComponent <Rigidbody2D> (); gunner = GameObject.Find("Gunner"); gunnerScript = gunner.GetComponent <GunnerMovement> (); text = GameObject.Find("Text"); }
// Use this for initialization void Start() { Background = GameObject.Find("Background"); scrollScript = Background.GetComponent <ScrollBg> (); gunner = GameObject.Find("Gunner"); gunnerScript = gunner.GetComponent <GunnerMovement> (); gameOverBg = GameObject.Find("GameOverBg"); }
// Start is called before the first frame update void Start() { gunner = GameObject.Find("Gunner"); gunnerScript = gunner.GetComponent <GunnerMovement> (); StartCoroutine(ZombieSpawn()); }