private void Start() { folderPath = Application.dataPath + @"/StreamingAssets/aacToWav"; httpReq = new httpRequest(); cW = new createWav(folderPath); audioSource = GetComponent <AudioSource>(); }
// Use this for initialization void Awake() { CartList = new MyCart(); gameObject.AddComponent <httpRequest>(); myApi = gameObject.GetComponent <httpRequest>(); myApi.GET("http://ec2-52-15-84-235.us-east-2.compute.amazonaws.com/myFYP/public/api/getCartData"); StartCoroutine(getRequesting()); }
// Use this for initialization void Start() { productList = new MyProduct(); gameObject.AddComponent <httpRequest>(); myApi = gameObject.GetComponent <httpRequest>(); myApi.GET("http://ec2-52-15-84-235.us-east-2.compute.amazonaws.com/myFYP/public/api/getAllProduct"); StartCoroutine(Requesting()); }
// Use this for initialization void Awake() { gazeList = new MyGaze(); uploadGaze = new Dictionary <int, GazeObject>(); gameObject.AddComponent <httpRequest>(); myApi = gameObject.GetComponent <httpRequest>(); myApi.GET("http://ec2-52-15-84-235.us-east-2.compute.amazonaws.com/myFYP/public/api/getFixationData"); StartCoroutine(getRequesting()); timeOffset = Time.realtimeSinceStartup; }