コード例 #1
0
 void Start()
 {
     responder    = GetComponent <RhythmicObject>();
     mapManager   = Object.FindObjectOfType(typeof(RhythmMapsManager)) as RhythmMapsManager;
     line         = mapManager.GetActiveMap().GetLine(part);
     line.Tick   += Act;
     line.Switch += ChangeStyle;
 }
コード例 #2
0
    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();
        }
    }