本文整理汇总了C#中UIManager.MapAction方法的典型用法代码示例。如果您正苦于以下问题:C# UIManager.MapAction方法的具体用法?C# UIManager.MapAction怎么用?C# UIManager.MapAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UIManager
的用法示例。
在下文中一共展示了UIManager.MapAction方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UICreated
void UICreated(bool isLoad)
{
if (isLoad == false)
{
isCanvasLoaded = true;
// BChance: (2015-12-02) - Re-added chat window.
obj1 = Instantiate(chatwindowObj);
obj1.name = obj1.name.Substring(0, (obj1.name.Length - 7));
obj1 = Instantiate(NPCdialogObj);
obj1.name = obj1.name.Substring(0, (obj1.name.Length - 7));
obj1 = Instantiate(CanvasObj);
obj1.name = obj1.name.Substring(0, (obj1.name.Length - 7));
obj1 = Instantiate(eventSysObj);
obj1.name = obj1.name.Substring(0, (obj1.name.Length - 7));
uimanager = gameObject.GetComponent<UIManager>();
Panel_Audio = GameObject.Find("AudioPanel");
Panel_ProgressReport = GameObject.Find("ProgressPanel");
Panel_Inventory = GameObject.Find("InventoryPanel");
Panel_Journal = GameObject.Find("JournalPanel");
Panel_Map = GameObject.Find("MapPanel");
Debug.Log("Panel_Audio: " + Panel_Audio);
Debug.Log("Panel_ProgressReport: " + Panel_ProgressReport);
Debug.Log("Panel_Inventory: " + Panel_Inventory);
Debug.Log("Panel_Journal: " + Panel_Journal);
Debug.Log("Panel_Map: " + Panel_Map);
GameObject.Find("BtnAudio/Button Layer").GetComponent<Button>().onClick.AddListener(() => { uimanager.SoundAction(); });
GameObject.Find("BtnInventroy/Button Layer").GetComponent<Button>().onClick.AddListener(() => { uimanager.InventoryAction(); });
GameObject.Find("BtnJournal/Button Layer").GetComponent<Button>().onClick.AddListener(() => { uimanager.JournalAction(); });
GameObject.Find("BtnProgress/Button Layer").GetComponent<Button>().onClick.AddListener(() => { uimanager.ProgressAction(); });
GameObject.Find("BtnJournalMap/Button Layer").GetComponent<Button>().onClick.AddListener(() => { uimanager.MapAction(); });
// DWhirle: (May 10, 2016)
GameObject.Find("ImgRoleIcon").transform.GetChild(GLOBAL.Player.progress["playernum"].i - 1).gameObject.SetActive(true);
isLoad = true;
//StartCoroutine(waitForNPC());
}
else
{
}
if (GameObject.Find("TopViewCamera") != null)
{
Panel_Map = GameObject.Find("TopViewCamera");
//Panel_Map.SetActive(false);
}
}