void Start() { interneTurmNr = 1; buildable = true; dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); movement = GameObject.Find("Player").transform.GetChild(1).GetComponent <PlayerController>(); }
// Start is called before the first frame update void Start() { movement = GameObject.Find("Player").transform.GetChild(1).GetComponent <PlayerController>(); dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); nextActionTime = 0.0f; period = 4f; }
public bool spielStart = false; // bool wird in StartPause.cs auf true gesetzt, sobald die erste Welle gestartet werden soll // Start is called before the first frame update void Start() { dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); standort = this.transform.position; spawnZeit = skelettSpawnZeit; countdown = spawnZeit; wellenStart = false; wellenCountdownP = wellenCountdown; }
// Update is called once per frame void Start() { dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); gamePanel = GameObject.Find("GamePanel"); //ordnet die Textfelder zu nameFeld = panel.transform.GetChild(0).GetComponent <Text>(); infotextFeld = panel.transform.GetChild(1).GetComponent <Text>(); }
// Start is called before the first frame update void Start() { dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); //hpText.text = "HP: " + dataStorage.hp.ToString(); //welleText.text = "Welle: " + dataStorage.welle.ToString(); //playerHpText.text = "Spieler HP: " + ((int)dataStorage.playerHp).ToString(); //moneyText.text = "Money: " + ((int)dataStorage.money).ToString(); //erzeText.text = "Erze: " + ((int)dataStorage.gen).ToString(); hpText.text = "Haus\n" + dataStorage.hp.ToString() + " LP"; welleText.text = "Welle:\n" + dataStorage.welle.ToString(); playerHpText.text = "Spieler\n" + ((int)dataStorage.playerHp).ToString() + " LP"; moneyText.text = ((int)dataStorage.money).ToString(); erzeText.text = ((int)dataStorage.gen).ToString(); }
void Start() { dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); player = GameObject.Find("Player").gameObject.transform.GetChild(1).gameObject; EnemySpawn = GameObject.Find("EnemySpawn").GetComponent <EnemySpawn>(); animator = GetComponentInChildren <Animator>(); //damage = dataStorage.enemyDamage1; //beatTime = dataStorage.enemyBeatTime1; //enemyHp = dataStorage.enemy1Hp; //Das muss noch für mehrere Enemys erweitert werden!!! startetEnemyHP = enemyHp; countdown = beatTime; SoundUsed = false; }
void Start() { timer = 0.0f; //towerGun = gameObject.transform.GetChild(0).GetChild(0).gameObject; TowerBuilld = GameObject.Find("TowerPlacementController").GetComponent <TowerBuild>(); dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); movement = GameObject.Find("Player").transform.GetChild(1).GetComponent <PlayerController>(); costs = dataStorage.towerCosts2; attackSpeed = dataStorage.towerAttackSpeed2; range = dataStorage.towerRange2; damage = dataStorage.towerDamage2; sc = this.gameObject.AddComponent <SphereCollider>(); sc.isTrigger = true; sc.radius = range; sc.enabled = false; }
private void Start() { dataStorage = this.gameObject.transform.parent.GetComponent <Datenspeicherung>(); cam = Camera.main; beatTime = dataStorage.beatTimePlayer; animator = GetComponent <Animator>(); SoundUsed = false; actionCooldown1 = 15f; actionCooldown2 = 120f; actionCooldown3 = 60f; timeSinceAction1 = 0f; timeSinceAction2 = 0f; timeSinceAction3 = 0f; }
// Start is called before the first frame update void Start() { tmpID = agent.agentTypeID; //speichert die ID des Agents ab um Sie in der Update zurück zu ändern onTheRoad = true; //ziel = GameObject.Find("EnemyZiel"); zielVector = ziel.transform.position; dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); player = GameObject.Find("Player").gameObject.transform.GetChild(1).gameObject; EnemySpawn = GameObject.Find("EnemySpawn").GetComponent <EnemySpawn>(); animator = GetComponentInChildren <Animator>(); damage = dataStorage.enemyBossDamage; beatTime = dataStorage.enemyBossBeatTime; enemyHp = dataStorage.enemyBoss1Hp; //Das muss noch für mehrere Enemys erweitert werden!!! startetEnemyHP = dataStorage.enemyBoss1Hp; countdown = beatTime; SoundUsed = false; }
// Start is called before the first frame update void Start() { movement = GameObject.Find("Player").transform.GetChild(1).GetComponent <PlayerController>(); dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); erstKontakt = true; }
// Start is called before the first frame update void Start() { dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); timer = 0; }
//Teleport Zauber! // Start is called before the first frame update void Start() { player = GameObject.Find("Player").gameObject.transform.GetChild(1).gameObject; dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); timer = 0; }
// Start is called before the first frame update void Start() { healthBar = transform.GetChild(0).GetChild(0).gameObject.GetComponent <Image>(); dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); }
//public List<GameObject> trails; // Start is called before the first frame update void Start() { dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); tmpTarget = target; }
// Start is called before the first frame update void Start() { enemyScript = transform.parent.parent.gameObject.GetComponent <Enemy>(); healthBar = transform.GetChild(0).GetChild(0).gameObject.GetComponent <Image>(); dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); }
// Start is called before the first frame update void Start() { spielerDamageX2Bool = false; spielerHpX2Bool = false; towerDamageX2Bool = false; damageSkillBool = false; healSkillBool = false; portSkillBool = false; try { dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); } catch { Debug.Log("Konnte die Datenspeicherung nicht finden"); } //Variablen Beschaffung spielerHpPlus = PlayerPrefs.GetInt("spielerHpPlusSave", spielerHpPlus); spielerDamagePlus = PlayerPrefs.GetInt("spielerDamagePlusSave", spielerHpPlus); towerDamagePlus = PlayerPrefs.GetInt("towerDamagePlusSave", spielerHpPlus); spielerDamageX2 = PlayerPrefs.GetInt("spielerDamageX2", spielerDamageX2); spielerHpX2 = PlayerPrefs.GetInt("spielerHpX2", spielerHpX2); towerDamageX2 = PlayerPrefs.GetInt("towerDamageX2", towerDamageX2); damageSkill = PlayerPrefs.GetInt("damageSkill", damageSkill); healSkill = PlayerPrefs.GetInt("healSkill", healSkill); portSkill = PlayerPrefs.GetInt("portSkill", portSkill); if (spielerDamageX2 == 2) { spielerDamageX2Button.GetComponent <Image>().color = new Color(1, 1, 1, 0.5f); spielerDamageX2Bool = true; } else { PlayerPrefs.SetInt("spielerDamageX2", 1); } if (spielerHpX2 == 2) { spielerHpX2Button.GetComponent <Image>().color = new Color(1, 1, 1, 0.5f); spielerHpX2Bool = true; } else { PlayerPrefs.SetInt("spielerHpX2", 1); } if (towerDamageX2 == 2) { towerDamageX2Button.GetComponent <Image>().color = new Color(1, 1, 1, 0.5f); towerDamageX2Bool = true; } else { PlayerPrefs.SetInt("towerDamageX2", 1); } if (damageSkill == 1) { damageSkillButton.GetComponent <Image>().color = new Color(1, 1, 1, 0.5f); damageSkillBool = true; } if (healSkill == 1) { healSkillButton.GetComponent <Image>().color = new Color(1, 1, 1, 0.5f); healSkillBool = true; } if (portSkill == 1) { portSkillButton.GetComponent <Image>().color = new Color(1, 1, 1, 0.5f); portSkillBool = true; } }
// Start is called before the first frame update void Start() { ausbaustufeHaupthaus = 0; movement = GameObject.Find("Player").transform.GetChild(1).GetComponent <PlayerController>(); dataStorage = GameObject.Find("Player").GetComponent <Datenspeicherung>(); }