c# - Inaccessible due to its protection level Unity3D -


this code that's creating error:

using unityengine; using unitystandardassets.imageeffects;  public class gs_globalfog : gs_sliderbase {  protected override void graphicspresetlow() {     setfog(false); }  protected override void graphicspresetmedium() {     setfog(true); }  protected override void graphicspresethigh() {     setfog(true); }  protected override void graphicspresetultra() {     setfog(true); }  protected override void onslidervaluechange() {     setfog(system.convert.toboolean(value)); }  void setfog(bool value) {     cam.getcomponent<globalfog>().enabled = value;      slider.value = system.convert.toint16(value);   } } 

this error visual studio 2015 giving me:

cs0122 'globalfog' inaccessible due protection level


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -