示例#1
0
        // Records a snapshot of the current finger
        public void RecordSnapshot()
        {
            // Get an unused snapshot and set it up
            var snapshot = LeanSnapshot.Pop();

            snapshot.Age            = Age;
            snapshot.ScreenPosition = ScreenPosition;

            // Add to list
            Snapshots.Add(snapshot);


            //	Debug.Log (ScreenPosition);

            RotationListTOUCH.RotationLogTOUCH.Add(new RotationDataTOUCH());
            RotationListTOUCH.RotationLogTOUCH[RotationListTOUCH.RotationLogTOUCH.Count - 1].qRotation.x = ScreenPosition.x;
            RotationListTOUCH.RotationLogTOUCH[RotationListTOUCH.RotationLogTOUCH.Count - 1].qRotation.y = ScreenPosition.y;

            RotationListTOUCH.RotationLogTOUCH[RotationListTOUCH.RotationLogTOUCH.Count - 1].deltaTime = Age;

            //		Debug.Log (RotationListTOUCH.RotationLogTOUCH[RotationListTOUCH.RotationLogTOUCH.Count - 1].qRotation.x);


            RotationListTOUCH.Save(Path.Combine(Application.dataPath, "Data/" + "TOUCH.xml"));
        }
示例#2
0
        // Records a snapshot of the current finger
        public void RecordSnapshot()
        {
            // Get an unused snapshot and set it up
            var snapshot = LeanSnapshot.Pop();

            snapshot.Age            = Age;
            snapshot.ScreenPosition = ScreenPosition;

            // Add to list
            Snapshots.Add(snapshot);
        }