public PerformanceCheckData(UniCameraPerformanceCookieType type, HandlePerformanceProc proc,
                             float checkrange, float forntrange, float backrange, float delayTime)
 {
     cookieType    = type;
     checkRange    = checkrange;
     forntRange    = forntrange;
     backRange     = backrange;
     sqrcheckRange = checkRange * checkRange;
     sqrforntRange = forntRange * forntRange;
     sqrbackRange  = backRange * backRange;
     handleproc    = proc;
     lockTime      = new UniTimeLocker(delayTime);
 }
Exemple #2
0
 public static List <UniCameraPerformanceCookie> GetCookieList(UniCameraPerformanceCookieType type)
 {
     return(performanceCookieTable.GetList((uint)type));
 }
Exemple #3
0
 public static void RemoveCookie(UniCameraPerformanceCookieType type, UniCameraPerformanceCookie cookie)
 {
     performanceCookieTable.Remove((uint)type, cookie);
 }
Exemple #4
0
 public static void AddCookie(UniCameraPerformanceCookieType type, UniCameraPerformanceCookie cookie)
 {
     performanceCookieTable.Add((uint)type, cookie);
 }