private void Start() { if (modObject == null) { modObject = GetComponent <ModifierObject> (); } }
public override void OnInspectorGUI() { if (current == null || current != target) { current = target as ModifierObject; } base.OnInspectorGUI(); deltaTime = (float)EditorApplication.timeSinceStartup - lastTime; EditorGUILayout.Space(); DrawGUI(); lastTime = (float)EditorApplication.timeSinceStartup; if (Application.isPlaying) { Repaint(); } }
void Start() { mo = GetComponent <ModifierObject> (); Invoke("ChangeMesh", 3f); }