// Use this for initialization void Start() { hookShot = false; hookShotTime = 0; hookTracking = GetComponent <MouseTracking>(); }
public void Send() { me = MouseTracking.me; building = (GameObject)Instantiate(Resources.Load("Prefabs/" + transform.gameObject.name)); building.name = transform.gameObject.name; me.Pick(building); }
internal static FrameworkControl GetMouseTracking(FrameworkElement uiParent) { FrameworkControl tmpFrame = new MouseTracking(uiParent); FrameworkConfiguration conf = GetMouseConfig(uiParent); tmpFrame.ConfigureFramework(conf); return(tmpFrame); }
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); }
public void Awake() { Instance = this; }