Esempio n. 1
0
 void OnMouseUp()
 {
     MouseDown = false;
     if (!Lerping)
     {
         AttachedObject.Pos = AttachedTransform.position;
         transform.Find("YArrow").GetComponent <Renderer>().enabled  = true;
         transform.Find("XZPlane").GetComponent <Renderer>().enabled = true;
         Game.current.Dirty = true;
         FireGizmoMovedEvent();
     }
     LerpEndPt     = LerpStartPt;
     LerpStartPt   = FPCam.transform.position;
     LerpStartTime = Time.time;
     Lerping       = true;
     AttachedObject.EnableClickColliders();
 }