Example #1
0
 public static AQAopManager ShowUseTime(this AQAopManager aqMgr)
 {
     aqMgr.Work((act) =>
     {
         Stopwatch sw = new Stopwatch();
         sw.Start();
         act();
         sw.Stop();
         UnityEngine.Debug.logger.Log("一共用时" + sw.ElapsedMilliseconds + "毫秒");
     });
     return(aqMgr);
 }
Example #2
0
 public static AQAopManager Log(this AQAopManager aqMgr, string bgMsg, string edMsg)
 {
     aqMgr.Work((act) =>
     {
         if (bgMsg != null)
         {
             Debug.logger.Log(bgMsg);
         }
         act();
         if (edMsg != null)
         {
             Debug.logger.Log(edMsg);
         }
     });
     return(aqMgr);
 }