示例#1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        if (GUILayout.Button("Cycle"))
        {
            HueShifter cycler = (HueShifter)target;
            cycler.Cycle();
        }
    }
示例#2
0
 void Start()
 {
     hueShifter = GetComponent <HueShifter>();
     GameManager.instance.SetInitalValues();
 }