本文整理汇总了C#中Inventory.Setup方法的典型用法代码示例。如果您正苦于以下问题:C# Inventory.Setup方法的具体用法?C# Inventory.Setup怎么用?C# Inventory.Setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Inventory
的用法示例。
在下文中一共展示了Inventory.Setup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitStuff
void InitStuff()
{
Items.Start();
Jobs.Start();
Dialogue.Start();
World.Start();
// Create the quest marker
questMarker = Instantiate(questMarker) as GameObject;
// Create the textbox
textbox = Instantiate(textbox, new Vector3(4.5f, 0.5f, 0f), Quaternion.identity) as GameObject;
textManager = textbox.GetComponent<Textbox>();
textManager.Draw();
// Create the inventory box
inventory = Instantiate(inventory, new Vector3(0f, 0f, 0f), Quaternion.identity) as GameObject;
inventoryManager = inventory.GetComponent<Inventory>();
inventoryManager.Setup();
// Create the info box
GameObject textContainer = new GameObject();
textContainer = Instantiate(textContainer, new Vector3(6f, 9.5f, -1f), Quaternion.identity) as GameObject;
textContainer.AddComponent<TextMesh>();
Vector3 oldScale = textContainer.transform.localScale;
Vector3 newScale = new Vector3(oldScale.x * .25f, oldScale.y * .25f, oldScale.z * .25f);
textContainer.transform.localScale = newScale;
textMesh = textContainer.GetComponent<TextMesh>();
textMesh.alignment = TextAlignment.Left;
textMesh.color = Color.white;
textMesh.fontSize = 20;
}