Beispiel #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        MasterInit master_init_script = (MasterInit)target;

        if (GUILayout.Button("UpdateSingletons"))
        {
            master_init_script.UpdateSingletons();
        }
    }
Beispiel #2
0
 public void UpdateSingletons()
 {
     _instance = FindObjectOfType <MasterInit> ();
 }