Example #1
0
        // Use this for initialization
        void Start()
        {
            directionFinger = new CopterFinger();
            engineFinger    = new CopterFinger();

            fourArrowSize = new Vector2(fourArrows.width, fourArrows.height);
        }
Example #2
0
 void SetFinger(CopterFinger setFinger, Touch finger)
 {
     // Check if there is already a finger attached to engine
     if (setFinger.id == -1)
     {
         setFinger.id            = finger.fingerId;
         setFinger.startPosition = finger.position;
     }
     if (setFinger.id == finger.fingerId)
     {
         setFinger.currentPosition = finger.position;
     }
 }