Example #1
0
File: RClic.cs Project: Krewn/LIOS
 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];
 }
Example #2
0
    void Awake()
    {
        if (Instance != null)
        {
            DestroyImmediate(gameObject);
            return;
        }

        Instance = this;
    }
Example #3
0
File: BIDT.cs Project: Krewn/LIOS
    void Start()
    {
        manager = Camera.main.GetComponent<LeapManager>();
        a       = Camera.main.GetComponent<GetFrame> ();

        k  = 0;
        km = 0;
        t  = 0;
        transform.GetChild(0).gameObject.SetActive(false);
    }
Example #4
0
        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();
                }
            }
        }
Example #5
0
 // Use this for initialization
 void Start()
 {
     getFrame  = GetComponent <GetFrame>();
     modelRoot = GameObject.Find("UGUI/Render/ModelRoot").transform;
 }
Example #6
0
File: LClic.cs Project: Krewn/LIOS
 void Start()
 {
     manager = Camera.main.GetComponent<LeapManager>();							//This links to some leap data
     a       = Camera.main.GetComponent<GetFrame> ();
     Lclic   = false;
 }