Exemple #1
0
    //////////////////////////////////////////////////////////////////////////////
    //////////////////////////////////////////////////////////////////////////////

    private void Awake()
    {
        _memChecker = GetComponent <FPSMemChecker>();
        if (_memChecker == null)
        {
            Debug.LogError("FpsMemDataSimple requires FPSMemChecker component on same GameObject");
        }
    }
Exemple #2
0
 void Start()
 {
     m_memFpsObj = Instantiate(MemFpsPrefab) as GameObject;
     m_memFpsObj.SetActive(false);
     m_fpsMenChecker = m_memFpsObj.GetComponent <FPSMemChecker>();
     RegisterEventHandler();
     //ShowGM();
 }
Exemple #3
0
    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);
        }
    }