Exemplo n.º 1
0
	void SwitchWeapon()
	{
		Inventory inv = GetComponent<Inventory> ();
		this.weapon = inv.nextWeapon ();
		Debug.Log ("Weapon set to " + weapon.GetName ());
	}