public void Setup() { if (Control == null) { Control = this; } else if (Control != this) { Destroy(this.gameObject); } frameController.gameObject.SetActive(true); frameScaler.gameObject.SetActive(false); }
public override void OnInspectorGUI() { DrawDefaultInspector(); Script_ArtFrameManager t = (Script_ArtFrameManager)target; if (GUILayout.Button("Open")) { t.Open(null); } if (GUILayout.Button("Close")) { t.Close(null); } }