//readonly GUIContent _stackCountLabel = new GUIContent( "Stack Count", "One stack per unique OSC address is expected" ); void OnEnable() { _oscGlobals = target as OscGlobals; _logStatuses = serializedObject.FindProperty("_logStatuses"); _logWarnings = serializedObject.FindProperty("_logWarnings"); }
void Awake() { // Only allow one OscSettings in the scene. OscGlobals[] settings = FindObjectsOfType <OscGlobals>(); if (settings.Length > 1) { DestroyImmediate(this); } _self = this; }
static void Init() { _self = new GameObject(typeof(OscGlobals).Name).AddComponent <OscGlobals>(); }