Ejemplo n.º 1
0
 private void Awake()
 {
     att          = GameObject.Find("AttackerHandler").GetComponent <AttackerHandler>();
     audioSource  = GameObject.Find("DeathSound").GetComponent <AudioSource>();
     path         = att.path;
     nextWayPoint = path.waypoints[0];
 }
Ejemplo n.º 2
0
    private void Awake()
    {
        playerHandler   = GameObject.Find("PlayerHandler").GetComponent <PlayerHandler>();
        attackerHandler = GameObject.Find("AttackerHandler").GetComponent <AttackerHandler>();
        waveHandler     = GameObject.Find("WaveHandler").GetComponent <WaveHandler>();

        moneyText  = GameObject.Find("MoneyText").GetComponent <Text>();
        healthText = GameObject.Find("HealthText").GetComponent <Text>();
        waveText   = GameObject.Find("WaveText").GetComponent <Text>();
        countText  = GameObject.Find("PathogenText").GetComponent <Text>();

        cellInfoPanel = GameObject.Find("CellInfo");

        upgrade1Text   = GameObject.Find("Upgrade1Text").GetComponent <Text>();
        upgrade2Text   = GameObject.Find("Upgrade2Text").GetComponent <Text>();
        sellButtonText = GameObject.Find("SellButtonText").GetComponent <Text>();

        upgrade1   = GameObject.Find("Upgrade1").GetComponent <Button>();
        upgrade2   = GameObject.Find("Upgrade2").GetComponent <Button>();
        sellButton = GameObject.Find("SellButton").GetComponent <Button>();

        cellName    = GameObject.Find("CellName").GetComponent <Text>();
        killCount   = GameObject.Find("KillCount").GetComponent <Text>();
        damageCount = GameObject.Find("DamageCount").GetComponent <Text>();

        nextWaveButton = GameObject.Find("WaveNumber");
    }
Ejemplo n.º 3
0
 protected void Start()
 {
     handler = GameObject.Find("AttackerHandler").GetComponent <AttackerHandler>();
     ui      = GameObject.Find("UIHandler").GetComponent <UIHandler>();
     player  = GameObject.Find("PlayerHandler").GetComponent <PlayerHandler>();
     map     = GameObject.Find("Map").GetComponent <SpriteRenderer>();
     timer   = cooldown;
 }
Ejemplo n.º 4
0
 private void Start()
 {
     attackerHandler = GameObject.Find("AttackerHandler").GetComponent <AttackerHandler>();
     playerHandler   = GameObject.Find("PlayerHandler").GetComponent <PlayerHandler>();
     gameSaver       = GameObject.Find("GameSave").GetComponent <GameSaveMono>();
     sceneHandler    = GameObject.Find("SceneHandler").GetComponent <SceneHandler>();
     audioSource     = GameObject.Find("BackgroundSong").GetComponent <AudioSource>();
     LoadWave();
 }
    // Private Methods

    private void Start()
    {
        attackerHandler = GameObject.Find("AttackerHandler").GetComponent <AttackerHandler>();
        playerHandler   = GameObject.Find("PlayerHandler").GetComponent <PlayerHandler>();
    }