コード例 #1
0
    // 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);
    }
コード例 #2
0
 // 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);
 }