// Use this for initialization void Start() { smoke = gameObject.GetComponent <ParticleSystem>(); theLevelMaster = GameObject.FindWithTag("MainCamera").GetComponent <levelMaster>(); spawnTimer -= (theLevelMaster.difficulty - 1) * .1; }
// Use this for initialization void Start() { player = GameObject.FindWithTag("Player").GetComponent <playerScript>(); theLevelMaster = GameObject.FindWithTag("MainCamera").GetComponent <levelMaster>(); PlaceSkillMenu(); }
// Use this for initialization void Start() { player = GameObject.FindWithTag("Player").GetComponent <playerScript>(); theLevelMaster = GameObject.FindWithTag("MainCamera").GetComponent <levelMaster>(); addShopItem("Laser", 5000); addShopItem("Piercing Shots", 6000); addShopItem("Fire Rate", 200); UpdateShop(); }
// Use this for initialization void Start() { theLevelMaster = GameObject.FindWithTag("LevelMaster").GetComponent <levelMaster>(); if (theLevelMaster) { Debug.Log("level master set" + theLevelMaster.difficulty); } maxHealth = health; transform.position = new Vector3(transform.position.x, height, transform.position.z); speed *= theLevelMaster.difficulty; health *= theLevelMaster.difficulty; maxHealth *= theLevelMaster.difficulty; cashValue *= theLevelMaster.difficulty; }
// Use this for initialization void Start() { smoke = gameObject.GetComponent <ParticleSystem>(); theLevelMaster = GameObject.FindWithTag("MainCamera").GetComponent <levelMaster>(); speed += theLevelMaster.difficulty / 4; if (speed > maxSpeed) { speed = maxSpeed; } money *= (int)(theLevelMaster.difficulty); health += theLevelMaster.difficulty * (int)(Mathf.Pow((float)(theLevelMaster.difficulty), 1.6f)); enemyDamage *= (int)(theLevelMaster.difficulty); exp = (int)(theLevelMaster.difficulty * 10); spawnTimer -= (theLevelMaster.difficulty - 1) * .1; }
// Use this for initialization void Start() { globalData.player = gameObject; rb = gameObject.GetComponent <Rigidbody>(); theLevelMaster = GameObject.FindWithTag("MainCamera").GetComponent <levelMaster>(); theShop = shopHolder.GetComponent <shopScript>(); currentHealth = maxHealth; currentEnergy = maxEnergy; Invoke("SetSkills", .1f); try { globalData.theSerializer.LoadPlayerData(); } catch { } UpdateSkillValues(); UpdateStats(); globalData.theSkillContainer.SetPlayerColor(); }
// Use this for initialization void Start() { theLevelMaster = GameObject.FindWithTag("LevelMaster").GetComponent <levelMaster>(); mainCamera = GameObject.Find("Main Camera1"); }
// Use this for initialization void Start() { theLevelMaster = GameObject.FindWithTag("MainCamera").GetComponent <levelMaster>(); smoke = gameObject.GetComponent <ParticleSystem>(); }
// Use this for initialization void Start() { levelevel = GameObject.FindWithTag("LevelMaster"); theLevelMaster = GameObject.FindWithTag("LevelMaster").GetComponentInParent <levelMaster>(); }