private BombsUI m_Bomb; //Bombs void Start() { m_Spawner = GameObject.FindGameObjectWithTag("PowerUp").GetComponent <PowerUpSpawner> (); m_BulletSpawn = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerBulletSpawn> (); m_lives = GameObject.FindGameObjectWithTag("UI").GetComponentInChildren <PlayerLives> (); m_Bomb = GameObject.FindGameObjectWithTag("UI").GetComponentInChildren <BombsUI> (); }
private BombsUI m_Bomb; //Bombs void Start() { m_Spawner = GameObject.FindGameObjectWithTag("PowerUp").GetComponent<PowerUpSpawner> (); m_BulletSpawn = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerBulletSpawn> (); m_lives = GameObject.FindGameObjectWithTag ("UI").GetComponentInChildren<PlayerLives> (); m_Bomb = GameObject.FindGameObjectWithTag ("UI").GetComponentInChildren<BombsUI> (); }