示例#1
0
  } // End of AntiAliasingValFromSliderVal

  // Initialization of ambient occlusion components.
  private void AOInit()
  {
    // If there is no post processing profile then exit from function.
    if(this.post_processing_profile==null)
    {
      return;
    }
    // Set values in component.
    this.ao.isOn=Convert.ToBoolean(PlayerPrefsManager.AOGet());
    // Save initial settings.
    OnAOChange();
    // Adds a listener.
    this.ao.onValueChanged.AddListener(delegate { OnAOChange(); });
  } // End of AOInit