public void GiveKeyOfTruth()
{
if (HasGivenKey == false)
{
//Code to spawn key of truth in player hand
//Debug.Log ("You get the key of truth");
UWHUD.instance.MessageScroll.Add(StringController.instance.GetString(1, StringController.str_none_of_your_skills_improved_)); //No skills appear
//inputctrl.text=UWHUD.instance.MessageScroll.text;
Shrine.HasGivenKey = true;
//create the key of truth.
ObjectLoaderInfo newobjt = ObjectLoader.newObject(225, 0, 0, 0, 256);
GameObject key = ObjectInteraction.CreateNewObject(GameWorldController.instance.currentTileMap(), newobjt, GameWorldController.instance.InventoryMarker.gameObject, GameWorldController.instance.InventoryMarker.transform.position).gameObject;
GameWorldController.MoveToInventory(key);
ObjectInteraction myObjInt = key.GetComponent <ObjectInteraction>();
/*ObjectInteraction myObjInt = ObjectInteraction.CreateNewObject(225);
* myObjInt.gameObject.transform.parent=GameWorldController.instance.InventoryMarker.transform;
* GameWorldController.MoveToInventory(myObjInt.gameObject);*/
UWCharacter.Instance.playerInventory.ObjectInHand = myObjInt.name;
UWHUD.instance.CursorIcon = myObjInt.GetInventoryDisplay().texture;
UWCharacter.InteractionMode = UWCharacter.InteractionModePickup;
InteractionModeControl.UpdateNow = true;
}
}