Example #1
0
    // Use this for initialization
    void Start()
    {
        hookShot     = false;
        hookShotTime = 0;

        hookTracking = GetComponent <MouseTracking>();
    }
Example #2
0
 public void Send()
 {
     me            = MouseTracking.me;
     building      = (GameObject)Instantiate(Resources.Load("Prefabs/" + transform.gameObject.name));
     building.name = transform.gameObject.name;
     me.Pick(building);
 }
Example #3
0
        internal static FrameworkControl GetMouseTracking(FrameworkElement uiParent)
        {
            FrameworkControl       tmpFrame = new MouseTracking(uiParent);
            FrameworkConfiguration conf     = GetMouseConfig(uiParent);

            tmpFrame.ConfigureFramework(conf);
            return(tmpFrame);
        }
Example #4
0
        private void AddTrackingData()
        {
            _mouse = Input.mousePosition;

            mouseTracking = new MouseTracking
            {
                XCoord = (int)Math.Round(_mouse.x),
                YCoord = (int)Math.Round(_mouse.y)
            };

            mouseOutput.Data.Add(mouseTracking);
        }
Example #5
0
 public void Awake()
 {
     Instance = this;
 }