public void isMold() { mold = 0; if (hittingXB == 1) { metalSt.mold_1 = true; metalSt.updateGraphics(); } else if (hittingXB == 2) { metalSt.mold_2 = true; metalSt.updateGraphics(); } // Mandar update al Metal moldBar.fillAmount = mold / maxMold; }
public void isSharp() { sharpMeter = 0; sharpBar.fillAmount = sharpMeter / goodSharp; metalSt.sharp = true; metalSt.updateGraphics(); //Spawn o Cambio de Arma }
// Update is called once per frame void Update() { if (metalInOven) { if (warmTime < maxTime) { warmTime += Time.deltaTime * hotForce * (o_Heater.heat / o_Heater.maxHeat); } else { //metalHot = true; metalSt.getWarm(); metalSt.updateGraphics(); } } }