public static ReportManager Instance() { if (instance == null) { instance = new ReportManager(); //instance = new GameObject("ReportManager").AddComponent<ReportManager>(); } return instance; }
private WindowManager _windows; // Draw window and button for toolbar #endregion Fields #region Methods // Run once at the mode loading public void Awake() { // it might help //ReportManager report = gameObject.AddComponent<ReportManager>(); report = ReportManager.Instance(); // Call the instance report.Kistory = this; // We need this for corutines _windows = new WindowManager(); // we need this to draw interface this.eventTime = DateTime.Now; // ? KDebug.Log("Awake", KDebug.Type.MONO); }