示例#1
0
 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);
 }
示例#2
0
 private new void Start()
 {
     this.oldMode = this.mode;
 }