GetInt() private method

private GetInt ( string key, int defaultValue ) : int
key string
defaultValue int
return int
Example #1
0
 private void Setup(ParticleSystemUI owner, SerializedObject o, string name, string displayName, ModuleUI.VisibilityState defaultVisibilityState)
 {
     this.m_ParticleSystemUI = owner;
     this.m_DisplayName      = displayName;
     this.m_Enabled          = !(this is RendererModuleUI) ? this.GetProperty("enabled") : this.GetProperty0("m_Enabled");
     this.m_VisibilityState  = (ModuleUI.VisibilityState)SessionState.GetInt(this.GetUniqueModuleName(), (int)defaultVisibilityState);
     this.CheckVisibilityState();
     if (!this.foldout)
     {
         return;
     }
     this.Init();
 }