private void UploadData() { if (isPredicted) { api.SubmitScoutData(new ScoutDataCollector(transform.position.x, transform.position.y, windSpeed, windDir)); } else { api.SubmitStationData(new StationDataCollector(stationId, windSpeed, windDir)); } }
void OnMouseDown() { Vector3 pos = Input.mousePosition; pos.z = 10; pos = Camera.main.ScreenToWorldPoint(pos); api.SubmitScoutData(new ScoutDataCollector(pos.x, pos.y, parentZone.getWindSpeed(), parentZone.getWindDirection())); Debug.Log("scout data fire in zone at:" + pos.ToString()); }
void OnMouseDown() { Vector3 pos = Input.mousePosition; pos.z = 10; pos = Camera.main.ScreenToWorldPoint(pos); api.SubmitScoutData(new ScoutDataCollector(pos.x, pos.y, globalWindScript.GetGlobalWindSpeed(), globalWindScript.GetGlobalWindDir())); Debug.Log("scout data fire at :" + pos.ToString()); }