Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     bombBaySript  = this.GetComponentInChildren <BombBayControls>();
     prevBombCount = bombBaySript.numOfBombs;
     //bombCountText.text = prevBombCount.ToString();
     counterDigits.SetDoubleNumber(prevBombCount);
 }
Esempio n. 2
0
 private void Start()
 {
     reloader     = this.GetComponent <ReloadManager>();
     bombBaySript = this.GetComponentInChildren <BombBayControls>();
     leftBombLight.GetComponent <Renderer>().material  = onMaterial;
     rightBombLight.GetComponent <Renderer>().material = offMaterial;
 }
Esempio n. 3
0
    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;
        }
    }
Esempio n. 4
0
    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;
        }
    }
Esempio n. 5
0
 private void Start()
 {
     bombBaySript = this.GetComponentInChildren <BombBayControls>();
     maxNumBombs  = bombBaySript.numOfBombs;
 }