Beispiel #1
0
		}// DrawRoutine



		public void ReturnRoutine(Routine routine){
			_routinesInReserve.Add (routine);
			_routinesInPlay.Remove (routine);
		}// ReturnRoutine
Beispiel #2
0
		}// OnUITryGuessRoutine



		public void OnUITryGuessRoutine(int option){

			_guessRoutineSelectVisible = true;
			 
			_guessPlayerId = -1;
			UIExtHasText text = null;
			switch (option) {
			case 1:
				text = BtnGuess1.GetComponent<UIExtHasText> ();
				break;
			case 2:
				text = BtnGuess2.GetComponent<UIExtHasText> ();
				break;
			default:
				text = BtnGuess3.GetComponent<UIExtHasText> ();
				break;
			}// switch
			_guessPlayerId = int.Parse (text.Text.text) - 1;
			_guessRoutine = _match.GetPlayer (_guessPlayerId).Routine;

			_displayedRoutine = 0;

			TxtSingleRoutine.Text.text = _match.AllRoutines[_displayedRoutine].Text;
			TxtSingleRoutine.gameObject.SetActive(true);

			BtnSelectRoutine.SetActive(true);
			BtnPrevRoutine.SetActive(true);
			BtnNextRoutine.SetActive(true);
		}// OnUITryGuessRoutine(int)
Beispiel #3
0
		}// GetPlayer



		public void AddNewRoutine(Routine routine){
			_routinesInReserve.Add (routine);
			_allRoutines.Add (routine);
		}// AddNewRoutine