////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// private void Awake() { _memChecker = GetComponent <FPSMemChecker>(); if (_memChecker == null) { Debug.LogError("FpsMemDataSimple requires FPSMemChecker component on same GameObject"); } }
void Start() { m_memFpsObj = Instantiate(MemFpsPrefab) as GameObject; m_memFpsObj.SetActive(false); m_fpsMenChecker = m_memFpsObj.GetComponent <FPSMemChecker>(); RegisterEventHandler(); //ShowGM(); }
public override void OnInspectorGUI() { FPSMemChecker t = target as FPSMemChecker; t.UpdateInterval = EditorGUILayout.FloatField("Update Interval", t.UpdateInterval); t.AlignHorz = (FPSMemChecker.AlignHorzEnum)EditorGUILayout.EnumPopup("Align Horz", t.AlignHorz); t.AlignVert = (FPSMemChecker.AlignVertEnum)EditorGUILayout.EnumPopup("Align Vert", t.AlignVert); if (GUI.changed) { EditorUtility.SetDirty(t); } }