cull(engine-cleanup): pass-8 phase-2 cascade round 1 after MyPageItemBattle stub
This commit is contained in:
@@ -47,45 +47,6 @@ public class TopBar : MonoBehaviour
|
||||
UIManager.SetObjectToGrey(BackButton.gameObject, !enable);
|
||||
}
|
||||
|
||||
public void SetBackButtonEvent(GameObject obj, UIManager.ViewScene backScene, EventDelegate inEvent)
|
||||
{
|
||||
BackButton.onClick.Clear();
|
||||
if (inEvent != null)
|
||||
{
|
||||
BackButton.onClick.Add(inEvent);
|
||||
return;
|
||||
}
|
||||
BackButton.onClick.Add(new EventDelegate(delegate
|
||||
{
|
||||
UIBase uibase = obj.GetComponent<UIBase>();
|
||||
Action action = delegate
|
||||
{
|
||||
if (backScene == UIManager.ViewScene.None)
|
||||
{
|
||||
|
||||
uibase.PushTurnButton();
|
||||
}
|
||||
else
|
||||
{
|
||||
UIManager.ViewScene currentScene = UIManager.GetInstance().GetCurrentScene();
|
||||
if (UIManager.GetInstance().IsCurrentScene(UIManager.ViewScene.Room))
|
||||
{
|
||||
(UIManager.GetInstance().GetUIBase(UIManager.ViewScene.Room) as RoomRoot).CreateChangeSceneDialog(uibase.getBackScene(), UIManager.GetInstance().TopBarBackParameterDict[currentScene]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
UIManager.GetInstance().ChangeViewScene(uibase.getBackScene(), UIManager.GetInstance().TopBarBackParameterDict[currentScene], UIManager.GetInstance().GetLastSceneChangeParam(uibase.getBackScene()));
|
||||
}
|
||||
}
|
||||
};
|
||||
if (uibase.IsGetOutOfScene(action))
|
||||
{
|
||||
action();
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
TitleObject.SetActive(value: true);
|
||||
|
||||
Reference in New Issue
Block a user