示例#1
0
  } // End of AOInit

  // On ambient occlusion change.
  private void OnAOChange()
  {
    // If there is no post processing profile then exit from function.
    if(this.post_processing_profile==null)
    {
      return;
    }
    // Actualize player preferences.
    PlayerPrefsManager.AOSet(Convert.ToInt32(this.ao.isOn));
    // Actualize value.
    this.post_processing_profile.ambientOcclusion.enabled=this.ao.isOn;
  } // End of OnAOChange