Пример #1
0
 void Start()
 {
     PickRandomNumber();
     chooseNextSong(randomNumber);
     currentSong = randomNumber;
     manager     = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>();
 }
Пример #2
0
 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>();
 }
Пример #4
0
 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;
 }
Пример #5
0
 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;
 }
Пример #6
0
    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;
    }
Пример #7
0
 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;
 }
Пример #8
0
 // 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;
 }
Пример #9
0
    // 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);
    }
Пример #10
0
 private void Start()
 {
     InvokeRepeating("PickRandomNumber", 1.0f, 1.0f);
     roundsCount = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>();
 }
Пример #11
0
 // Use this for initialization
 void Start()
 {
     manager = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>();
 }
Пример #12
0
 // Use this for initialization
 void Start()
 {
     LookAtTarget  = GameObject.FindWithTag("Player").transform;             //target the player
     roundComplete = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>();
 }
Пример #13
0
 private void Awake()
 {
     playerScript = GameObject.FindGameObjectWithTag("Player").GetComponent <MoveAround>();          //cache transform data for easy access/performance
     enemiesAlive = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>();
 }
Пример #14
0
 private void Start()
 {
     windowRect = new Rect(Screen.width / 2 - 100, Screen.height / 2 - 75, 200, 150);
     manager    = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>();
 }
Пример #15
0
 // 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>();
 }