// Start is called before the first frame update void Start() { bombBaySript = this.GetComponentInChildren <BombBayControls>(); prevBombCount = bombBaySript.numOfBombs; //bombCountText.text = prevBombCount.ToString(); counterDigits.SetDoubleNumber(prevBombCount); }
private void Start() { reloader = this.GetComponent <ReloadManager>(); bombBaySript = this.GetComponentInChildren <BombBayControls>(); leftBombLight.GetComponent <Renderer>().material = onMaterial; rightBombLight.GetComponent <Renderer>().material = offMaterial; }
private void HandlePlayerInstantBombReload() { BombBayControls bombBayControls = GameObject.FindObjectOfType <BombBayControls>(); if (bombBayControls.reloadTime != 0) { prevBombReloadTime = bombBayControls.reloadTime; } if (playerRapidBombReload == true) { bombBayControls.reloadTime = 0; } else { bombBayControls.reloadTime = prevBombReloadTime; } }
private void HandlePlayerUnlimitedBombs() { BombBayControls bombBayControls = GameObject.FindObjectOfType <BombBayControls>(); if (bombBayControls.numOfBombs < 1000) { prevBombCount = bombBayControls.numOfBombs; } if (playerUnlimitedBombs == true) { bombBayControls.numOfBombs = 999999999; } else { bombBayControls.numOfBombs = prevBombCount; } }
private void Start() { bombBaySript = this.GetComponentInChildren <BombBayControls>(); maxNumBombs = bombBaySript.numOfBombs; }