Example #1
0
 void Awake()
 {
     Instance   = this;
     _startTime = DateTime.Now;
     ATMFileIO.CreateFile(_startTime, "123456");
     ATMFileIO.WriteHead("Time,Action");
 }
Example #2
0
    void OnDestroy()
    {
        ATMRealCard._EventCardIn        -= CardInRecord;
        ATMMaoyeye._EventMoneyBeenTaken -= MoneyTaken;

        ATMTaskPannelManager.PannelHideEvent -= TaskPannelHide;
        ATMTaskPannelManager.PannelShowEvent -= TaskPannelShow;

        ATMTaskTipFingerManager._TipHideEvent -= TipHide;
        ATMFingerTip._FigerTipShowEvent       -= FigerTipShow;
        ATMFingerTip._KeyboardTipShowEvent    -= KeyboardShow;

        ATMFileIO.WriteToFilePerformance(FinishTime, ATMTaskFromUI.TaskFromUI.ToString() + " Total Time");
        ATMFileIO.CloseFile();
        Instance = null;
    }