// Use this for initialization void Start () { _blackAndWhiteOne = transform.GetComponent<BlackAndWhiteShaderScript>(); _blackAndWhiteTwo = transform.GetComponent<BlackAndWhiteShaderScript2>(); _invertColorsScene = transform.GetComponent<InvertColorsSceneShader>(); _pixelateScene = transform.GetComponent<PixelateSceneShader>(); _glitchLine = transform.GetComponent<GlitchLineShader>(); _invertSceneX = transform.GetComponent<InvertX>(); _invertSceneY = transform.GetComponent<InvertY>(); Invoke("StartGlitchScreen", timeBetweenGlitches); }
// Use this for initialization void Start() { _blackAndWhiteOne = transform.GetComponent <BlackAndWhiteShaderScript>(); _blackAndWhiteTwo = transform.GetComponent <BlackAndWhiteShaderScript2>(); _invertColorsScene = transform.GetComponent <InvertColorsSceneShader>(); _pixelateScene = transform.GetComponent <PixelateSceneShader>(); _glitchLine = transform.GetComponent <GlitchLineShader>(); _invertSceneX = transform.GetComponent <InvertX>(); _invertSceneY = transform.GetComponent <InvertY>(); Invoke("StartGlitchScreen", timeBetweenGlitches); }