public void endLock() { isLocking = false; makeColor(defaultColor); if (warningComputer == null) { warningComputer = hudControl.mainHud.GetComponent <hudControl>().warningComputer; } warningComputer.endLock(this); }
public void beginLock() { isLocking = true; makeColor(lockColor); if (warningComputer == null) { warningComputer = hudControl.mainHud.GetComponent <hudControl>().warningComputer; } //Debug.Log("Beginning lock"); warningComputer.beginLock(this); }
// Start is called before the first frame update void Start() { showPingResult(false, 0, 0); warningComputer = hudControl.mainHud.GetComponent <hudControl>().warningComputer; }