Exemple #1
0
    public override void OnInspectorGUI()
    {
        PatternManager manager = target as PatternManager;

        if (DrawDefaultInspector())
        {
            //Something changed!
        }
        if (Application.isPlaying)
        {
            if (GUILayout.Button("Next Pattern"))
            {
                manager.NextPattern();
            }
        }
        else
        {
            if (GUILayout.Button("Create new pattern"))
            {
                manager.CreateNewPattern();
            }
            if (GUILayout.Button("Arrange displays"))
            {
                manager.ArrangePatternDisplays();
            }
        }
    }