예제 #1
0
 public static ReportManager Instance()
 {
     if (instance == null)
     {
         instance = new ReportManager();
         //instance = new GameObject("ReportManager").AddComponent<ReportManager>();
     }
     return instance;
 }
예제 #2
0
파일: Kistory.cs 프로젝트: xandrd/Kistory
        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);
        }