// Use this for initialization void Start() { bsod = crash = windows = intialStart = firstGlitch = false; intialTimer = nextGlitchTimer = 0f; timeToFirstGlitch = intialDelay + Random.Range(-intialRandomOffset, intialRandomOffset); timeToNextGlitch = 50f; gc = FindObjectOfType <GameController>(); bsodEvent = FindObjectOfType <EventBSOD>(); windowsEvent = FindObjectOfType <WindowsEvent>(); crashEvent = FindObjectOfType <ProgCrashEvent>(); staticEvent = FindObjectOfType <StaticEvent>(); //for testing only intialStart = true; }
// Use this for initialization void Start() { fillBar = GetComponent <Image>(); fillBar.fillAmount = 0f; crashEvent = GetComponentInParent <ProgCrashEvent>(); }