void Start() { PickRandomNumber(); chooseNextSong(randomNumber); currentSong = randomNumber; manager = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); }
private void Start() { LookAtTarget = GameObject.FindWithTag("Player").transform; //target the player InvokeRepeating("PickRandomNumber", 1.0f, 1.0f); InvokeRepeating("PickRandomNumber", 1.0f, 3.0f); enemiesAlive = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); enemiesAlive.aliveCount += 1; }
// Use this for initialization void Start() { head = GameObject.FindGameObjectWithTag("EnemyBoss").GetComponent <greenBossCollision>(); playerScript = GameObject.FindWithTag("Player").GetComponent <MoveAround>(); enemiesAlive = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); health = GameObject.FindGameObjectWithTag("greenEnemyHealth").GetComponent <GreenBossHealth>(); shuttleControl = GameObject.FindGameObjectWithTag("EnemyBoss").GetComponent <greenBossControl>(); }
private void Start() { enemiesKilled = 0; Shield = GameObject.FindGameObjectWithTag("shield").GetComponent <Shield>(); GO = GameObject.FindGameObjectWithTag("Manager").GetComponent <GameOver>(); manager = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); windowRect = new Rect(Screen.width / 2 - 200, Screen.height / 2 + 70, 400, 85); //temp = weaponHeat.color.a; }
public Transform blueBossTransform; //current transform data of this enemy - DELETE THIS WHEN HAS REAL MODEL // Use this for initialization void Start() { playerScript = GameObject.FindWithTag("Player").GetComponent <MoveAround>(); //cache transform data for easy access/performance health = GameObject.FindGameObjectWithTag("blueEnemyHealth").GetComponent <BlueBossHealth>(); enemiesAlive = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); BLM = GameObject.FindGameObjectWithTag("mainFloor").GetComponent <BonusLevelManager>(); health.background.guiTexture.enabled = true; GO = GameObject.FindGameObjectWithTag("Manager").GetComponent <GameOver>(); blueBossTransform = GameObject.FindGameObjectWithTag("BlueBoss").transform; }
public Transform greenBossTransform; //current transform data of this enemy - DELETE THIS WHEN HAS REAL MODEL // Use this for initialization void Start() { playerScript = GameObject.FindWithTag("Player").GetComponent <MoveAround>(); //cache transform data for easy access/performance health = GameObject.FindGameObjectWithTag("greenEnemyHealth").GetComponent <GreenBossHealth>(); enemiesAlive = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); enemiesAlive.aliveCount = 1; BLM = GameObject.FindGameObjectWithTag("mainFloor").GetComponent <BonusLevelManager>(); health.background.guiTexture.enabled = true; GO = GameObject.FindGameObjectWithTag("Manager").GetComponent <GameOver>(); //shuttleControl = gameObject.GetComponent<greenBossControl>(); greenBossTransform = GameObject.FindGameObjectWithTag("GreenBoss").transform; }
private void Start() { LookAtTarget = GameObject.FindWithTag("Player").transform; //target the player InvokeRepeating("PickRandomNumber", 1.0f, 1.0f); InvokeRepeating("PickRandomNumber", 1.0f, 3.0f); enemiesAlive = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); enemiesAlive.aliveCount = 1; health = GameObject.FindGameObjectWithTag("blueEnemyHealth").GetComponent <BlueBossHealth>(); gt = health.GetComponent(typeof(GUITexture)) as GUITexture; gt.enabled = true; healthBackground = GameObject.FindGameObjectWithTag("blueEnemyHealthBack").GetComponent(typeof(GUITexture)) as GUITexture; healthBackground.enabled = true; }
// Use this for initialization void Start() { redBossSpawn.GetComponent <redBossSpawn>().isActive = true; greenBossSpawn.GetComponent <greenBossSpawn>().isActive = true; blueBossSpawn.GetComponent <blueBossSpawn>().isActive = true; GameOver = GameObject.FindGameObjectWithTag("Manager").GetComponent <GameOver>(); manager = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); manager.finalLevel = false; manager.redBossDEAD = false; manager.greenBossDEAD = false; manager.blueBossDEAD = false; manager.BLM = GameObject.FindGameObjectWithTag("mainFloor").GetComponent <BonusLevelManager>(); timer = 120.0f; }
// Use this for initialization void Start() { manager = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); randomNumber = Random.Range(0, 5); if (redBossDEAD == true) { powerUp = "Boost"; redBossDEAD = false; } else if (greenBossDEAD == true) { powerUp = "Boost Upgrade"; greenBossDEAD = false; } else { powerUp = powerUps[randomNumber]; } print(powerUp); }
private void Start() { InvokeRepeating("PickRandomNumber", 1.0f, 1.0f); roundsCount = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); }
// Use this for initialization void Start() { manager = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); }
// Use this for initialization void Start() { LookAtTarget = GameObject.FindWithTag("Player").transform; //target the player roundComplete = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); }
private void Awake() { playerScript = GameObject.FindGameObjectWithTag("Player").GetComponent <MoveAround>(); //cache transform data for easy access/performance enemiesAlive = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); }
private void Start() { windowRect = new Rect(Screen.width / 2 - 100, Screen.height / 2 - 75, 200, 150); manager = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); }
// Use this for initialization void Start() { windowRect = new Rect(Screen.width / 2 - 200, Screen.height / 2 + 70, 400, 85); manager = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); }