private void OnEnable() { m_profile = (DisableUnderwaterFXTrigger)target; if (m_editorUtils == null) { // Get editor utils for this m_editorUtils = PWApp.GetEditorUtils(this); } }
public override void OnInspectorGUI() { //Initialization m_editorUtils.Initialize(); // Do not remove this! if (m_profile == null) { m_profile = (DisableUnderwaterFXTrigger)target; } m_editorUtils.Panel("GlobalSettings", GlobalPanel, true); }