private void SaveToExcelButton_Click(object sender, RoutedEventArgs e) { this.SaveToExcelButton.IsEnabled = false; EventCore core = new EventCore(); core.SaveEvidence(); }
private static void CallCoreMethod(string operation) { Task.Run(() => { EventCore core = new EventCore(); core.TakeScreenShot(operation); }); }
public static void RaiseEvent(this object sender, string name, object data = null) { if (string.IsNullOrWhiteSpace(name)) { return; } EventCore.RaiseEvent(sender, new EventEventArgs(name, data)); }
private void Awake() { if (Instance != null) { DestroyImmediate(this); Debug.LogError("MULTIPLE EVENT CORES IN SCENE"); } else { Instance = this; DontDestroyOnLoad(gameObject); } }
public void Init() { _core = new EventCore(); }
private void Awake() { Inst = this; }