コード例 #1
0
		public void SetActionSequence(VerbActionSequence actionSequence) {
			_actionSequence = actionSequence;


			if(GameController.MessageManager != null) {
				_verbText.text = GameController.MessageManager.GetMessage(_actionSequence.VerbCoinText);
			}
			else {
				_verbText.text = _actionSequence.VerbCoinText;
			}

			// If the text is blank then hide
			if(_verbText.text == null || _verbText.text == ""){Hide();}

		}
コード例 #2
0
		/// <summary>
		/// Clear this instance by removing the display text and the action sequence
		/// </summary>

		internal void Clear() {
			// Clear the text
			_verbText.text = "";
			// Clear the action sequence
			_actionSequence = null;
		}