public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        MagicMeter meter = (MagicMeter)target;

        GUILayout.Label("Change magic meter UI amount only.");
        meter.SolidImage.fillAmount = EditorGUILayout.Slider("Magic Amount", meter.SolidImage.fillAmount, 0, 1);
    }
Example #2
0
 void LoadGUI(Scene scene, LoadSceneMode mode)
 {
     cameraScroll     = GameObject.Find("Main Camera").GetComponent <CameraScroll>();
     DialogController = GameObject.Find("DialogController");
     MagicMeter       = GameObject.Find("MagicMeter").GetComponent <MagicMeter>();
 }