public override void OnInspectorGUI() { DrawDefaultInspector(); MasterInit master_init_script = (MasterInit)target; if (GUILayout.Button("UpdateSingletons")) { master_init_script.UpdateSingletons(); } }
public void UpdateSingletons() { _instance = FindObjectOfType <MasterInit> (); }