Ejemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();


        if (GUILayout.Button("Cycle"))
        {
            BackgroundColorChanger cycler = (BackgroundColorChanger)target;
            cycler.CycleColors();
        }
    }
 //Script to change all of the colors in the game scene
 void Awake()
 {
     bgcc = this;
 }