void Start() { responder = GetComponent <RhythmicObject>(); mapManager = Object.FindObjectOfType(typeof(RhythmMapsManager)) as RhythmMapsManager; line = mapManager.GetActiveMap().GetLine(part); line.Tick += Act; line.Switch += ChangeStyle; }
public override void OnInspectorGUI() { RhythmicObject rhythmicObj = (RhythmicObject)target; DrawDefaultInspector(); if (GUILayout.Button("Insert to Base")) { rhythmicObj.InsertToBaseScript(); } if (GUILayout.Button("Delete from Base")) { rhythmicObj.DeleteFromBaseScript(); } }