// Use this for initialization void Start() { _handler.InitialiseConnection(); LoadConfigFromDB(); RunButton.onClick.AddListener(delegate() { SaveAndRun(); }); CopyButton.onClick.AddListener(delegate() { SaveNewAndRun(); }); CancelButton.onClick.AddListener(delegate() { ReturnToMainMenu(); }); DeleteButton.onClick.AddListener(delegate() { if (ArgumentStore.IdToLoad.HasValue) { _handler.DeleteConfig(ArgumentStore.IdToLoad.Value); ReturnToMainMenu(); } else { Debug.Log("Cannot delete config because there is none loaded."); } }); ResetButton.onClick.AddListener(delegate() { if (ArgumentStore.IdToLoad.HasValue) { _handler.DeleteIndividuals(ArgumentStore.IdToLoad.Value); SaveAndRun(); } else { Debug.Log("Cannot delete config because there is none loaded."); } }); }