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); }
public static List <UniCameraPerformanceCookie> GetCookieList(UniCameraPerformanceCookieType type) { return(performanceCookieTable.GetList((uint)type)); }
public static void RemoveCookie(UniCameraPerformanceCookieType type, UniCameraPerformanceCookie cookie) { performanceCookieTable.Remove((uint)type, cookie); }
public static void AddCookie(UniCameraPerformanceCookieType type, UniCameraPerformanceCookie cookie) { performanceCookieTable.Add((uint)type, cookie); }