void OnEnable() { monoBehaviour = (MonoBehaviour)target; if (!EditorPrefs.HasKey(monoBehaviour.GetInstanceID() + "-SimpleNote-Title")) { EditorPrefs.SetString(monoBehaviour.GetInstanceID() + "-SimpleNote-Title", "Title Here"); EditorPrefs.SetString(monoBehaviour.GetInstanceID() + "-SimpleNote-Note", "Note Here"); } title = EditorPrefs.GetString(monoBehaviour.GetInstanceID() + "-SimpleNote-Title", "Title Here"); note = EditorPrefs.GetString(monoBehaviour.GetInstanceID() + "-SimpleNote-Note", "Note Here"); }
public static void LogCode(string messageCode, MonoBehaviour M, bool showInConsole) { Log(messages[messageCode].ToString() + " from " + M.ToString() + " ID# " + M.GetInstanceID(), showInConsole); }