/* CODE OF OBJECT TYPE SOUND * 1 - square * 2 - circle * 3 - triangle * 4 - select * 5 - exit * 6 - errorT * 7 - vazio */ // (userID, lastObj, objTypeSound, relativePos1, relativePos2, selecionados, totais); private void Update() { squares_findTotal = 5; circles_findTotal = 5; if (Input.GetKeyDown(KeyCode.A)) { squares_findTotal = 5; circles_findTotal = 5; circles_inc = 0; squares_inc = 0; haveTime = DateTime.Now; audioRequest.PlayRemoteAudio(-1, -2, -1, transform.position, -1, -1, feedbackType); } //Reiniciar valores de incrementos no som: passar -2 no lastObj //Private if (Input.GetKeyDown(KeyCode.Z)) { feedbackType = 1; audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, -1, -1, feedbackType); } //Task-Dependent if (Input.GetKeyDown(KeyCode.X)) { feedbackType = 2; audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, -1, -1, feedbackType); } //Public if (Input.GetKeyDown(KeyCode.C)) { feedbackType = 3; audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, -1, -1, feedbackType); } // GOD mode if (Input.GetKeyDown(KeyCode.G)) { feedbackTypeLast = feedbackType; feedbackType = 4; audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, -1, -1, feedbackType); GodOn = true; PressingG = true; startG = DateTime.Now - haveTime; godUp = true; } else if (Input.GetKeyUp(KeyCode.G)) { feedbackType = feedbackTypeLast; audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, -1, -1, feedbackType); GodOn = false; PressingG = false; isG = false; pressGod++; godUp = false; endG = DateTime.Now - haveTime; } }
/* CODE OF OBJECT TYPE SOUND * 1 - square * 2 - circle * 3 - triangle * 4 - select * 5 - exit * 6 - errorT * 7 - vazio */ // (userID, lastObj, objTypeSound, relativePos1, relativePos2, selecionados, totais); private void Update() { if (Input.GetKeyDown(KeyCode.A)) { squares_findTotal = cubinhosCounterMaster.GetSquaresTotal(); circles_findTotal = cubinhosCounterMaster.GetCirclesTotal(); haveTime = DateTime.Now; haveTimeLuci = DateTime.Now; audioRequest.PlayRemoteAudio(-1, -2, -1, transform.position, -1, -1, -1, -1, feedbackType, -2, lastFeedbackPress); LuciTempo = 0; } //Reiniciar valores de incrementos no som: passar -2 no lastObj //Private if (Input.GetKeyDown(KeyCode.Z)) { feedbackType = 1; lastFeedbackPress = 1; audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, -1, -1, -1, -1, feedbackType, lastObjectType, lastFeedbackPress); } //Task-Dependent if (Input.GetKeyDown(KeyCode.X)) { feedbackType = 2; lastFeedbackPress = 2; audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, -1, -1, -1, -1, feedbackType, lastObjectType, lastFeedbackPress); } //Public if (Input.GetKeyDown(KeyCode.C)) { feedbackType = 3; lastFeedbackPress = 3; audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, -1, -1, -1, -1, feedbackType, lastObjectType, lastFeedbackPress); } // GOD mode if (Input.GetKeyDown(KeyCode.G)) { feedbackTypeLast = feedbackType; feedbackType = 4; audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, -1, -1, -1, -1, feedbackType, lastObjectType, lastFeedbackPress); GodOn = true; PressingG = true; startG = DateTime.Now - haveTime; godUp = true; } else if (Input.GetKeyUp(KeyCode.G)) { feedbackType = feedbackTypeLast; audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, -1, -1, -1, -1, feedbackType, lastObjectType, lastFeedbackPress); GodOn = false; PressingG = false; isG = false; pressGod++; godUp = false; endG = DateTime.Now - haveTime; } // Emergency and for Testing Luci Mode /* * if (Input.GetKeyDown(KeyCode.L)) * { * print("Luci On"); * feedbackTypeLast = feedbackType; * feedbackType = 6; * audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, -1, -1, feedbackType, lastObjectType, lastFeedbackPress); * LuciOn = true; * startLuci = DateTime.Now - haveTimeLuci; * LuciUp = true; * } * else if (Input.GetKeyUp(KeyCode.L)) * { * print("Luci Off"); * feedbackType = feedbackTypeLast; * audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, -1, -1, feedbackType, lastObjectType, lastFeedbackPress); * LuciOn = false; * endLuci = DateTime.Now - haveTimeLuci; * LuciTempo += (endLuci - startLuci).TotalMilliseconds; * LuciUp = false; * } * //*/ if (theTouch.GetComponent <NewTouch>().handsTooCloseLuci&& feedbackType != 6) { //LuciMode feedbackTypeLast = feedbackType; feedbackType = 6; //audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, cubinhosCounterMaster.GetSquaresInc(), squares_findTotal, cubinhosCounterMaster.GetCirclesInc(), circles_findTotal, feedbackType, lastObjectType, lastFeedbackPress); LuciOn = true; } if (!theTouch.GetComponent <NewTouch>().handsTooCloseLuci&& feedbackType == 6) { //LuciModeEnds print("Saiu do Luci"); feedbackType = feedbackTypeLast; //audioRequest.PlayRemoteAudio(-1, -1, -1, transform.position, cubinhosCounterMaster.GetSquaresInc(), squares_findTotal, cubinhosCounterMaster.GetCirclesInc(), circles_findTotal, feedbackType, -1, lastFeedbackPress); LuciOn = false; } // */ }