void Start() { manager = Camera.main.GetComponent<LeapManager>(); //This links to some leap data a = Camera.main.GetComponent<GetFrame> (); Rclic = false; step = 0; spector = new float[3]; }
void Awake() { if (Instance != null) { DestroyImmediate(gameObject); return; } Instance = this; }
void Start() { manager = Camera.main.GetComponent<LeapManager>(); a = Camera.main.GetComponent<GetFrame> (); k = 0; km = 0; t = 0; transform.GetChild(0).gameObject.SetActive(false); }
async void FrameUpdate() { Console.WriteLine("ActorManager Update Started"); Stopwatch frameWatch = new Stopwatch(); frameWatch.Start(); var update = new Update(); var getframe = new GetFrame(); while (true) { await _context.RequestAsync<int>(_user, update); if (frameWatch.ElapsedMilliseconds > 1000) { int frame = await _context.RequestAsync<int>(_user, getframe); ; frameWatch.Stop(); Console.WriteLine("frame:{0} on {1}", frame, frameWatch.ElapsedMilliseconds); frameWatch.Restart(); } } }
// Use this for initialization void Start() { getFrame = GetComponent <GetFrame>(); modelRoot = GameObject.Find("UGUI/Render/ModelRoot").transform; }
void Start() { manager = Camera.main.GetComponent<LeapManager>(); //This links to some leap data a = Camera.main.GetComponent<GetFrame> (); Lclic = false; }