Esempio n. 1
0
 private void Start()
 {
     folderPath  = Application.dataPath + @"/StreamingAssets/aacToWav";
     httpReq     = new httpRequest();
     cW          = new createWav(folderPath);
     audioSource = GetComponent <AudioSource>();
 }
Esempio n. 2
0
 // 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());
 }
Esempio n. 3
0
 // 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());
 }
Esempio n. 4
0
 // 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;
 }