Example #1
0
 void DropWeapon(Usable item)
 {
     currentWeapon = item.GetComponent <Weapon>();
     WeaponImage.gameObject.SetActive(true);
     WeaponImage.sprite         = item.icon;
     WeaponRemaining.fillAmount = 1;
 }
Example #2
0
	void OnSelectedUsable(Usable usable) {
		NGUITools.SetActive(mainControl.gameObject, true);
		if(usable!=null) {
			string actionText = usable.defaultActionText;
		//	iTween.FadeTo(mainControl.gameObject,1.0f,0.25f);
			_trigger = usable.GetComponent<ConversationTrigger>();
				#if UNITY_IPHONE || UNITY_ANDROID
				string output = "Press chat icon "+actionText+" "+usable.GetName();
				label.text = output.ToUpper();
			#else
				string output = "Press Space "+actionText +" "+ usable.GetName();
				label.text = output.ToUpper();
			#endif 
		}
		
	}