public override bool CheckResources() { base.CheckSupport(true); this.edgeDetectMaterial = base.CheckShaderAndCreateMaterial(this.edgeDetectShader, this.edgeDetectMaterial); if (this.mode != this.oldMode) { this.SetCameraFlag(); } this.oldMode = this.mode; if (!this.isSupported) { base.ReportAutoDisable(); } return(this.isSupported); }
private new void Start() { this.oldMode = this.mode; }