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
Post a Comment