void Start() { UIMan = GetComponent <SceneUIManager>(); //inputDisabled = false; playing = true; }
void Awake() { instance = this; if (SceneManager.GetActiveScene().name == "Loding") { return; } else { if (transform.Find("ArenaDragCam") != null) { ArenaDragCam = transform.Find("ArenaDragCam").gameObject; if (Camera.main.GetComponentInChildren <UIDraggableCamera>() != null) { UIDraggableCamera dc = ArenaDragCam.GetComponentInChildren <UIDragCamera>().draggableCamera = Camera.main.GetComponentInChildren <UIDraggableCamera>(); if (GameLibrary.SceneType(SceneType.PVP3)) { dc.SetDragBounds(8.25f, 2, 2, 0.78f, -90); } else { dc.SetDragBounds(20, -20, 20, -20); } } } bloodScreen = transform.FindChild("PanelUIEffects/GamePromptPanel/UIBloodScreen").gameObject; // ACTCounter = transform.FindChild("ACTCounter").gameObject; if (transform.FindChild("TaskBubble") != null) { taskBubble = transform.FindChild("TaskBubble").gameObject; } SwitchBloodScreen(false); tas = laChubingCD.GetComponents <TweenAlpha>(); FlopCardPanel = AddUIGo(GameLibrary.UIFlopCardPanel).GetComponent <FlopPanel>(); MobaStatInfoGo = AddUIGo(GameLibrary.UIMobaStatInfo); arenaWinPanel = AddUIGo(GameLibrary.UIArenaWinPanel).GetComponent <UIArenaWinPanel>(); startGamePrompt = AddUIGo(GameLibrary.UIGamePromptPanel); if (Globe.isFightGuide) { AddUIGo("GuideMask"); } if (null != SceneBaseManager.instance) { if (SceneBaseManager.instance.sceneType == SceneType.FD_LG) { Control.ShowGUI(UIPanleID.UITaskTracker, EnumOpenUIType.DefaultUIOrSecond); Control.ShowGUI(UIPanleID.UIDeadToReborn, EnumOpenUIType.DefaultUIOrSecond); Control.ShowGUI(UIPanleID.UITaskEffectPanel, EnumOpenUIType.DefaultUIOrSecond); } ShowUIByScene(SceneBaseManager.instance.sceneType); } } }