Пример #1
0
        public static void CreateDialog(GameObject parentDialog, EvolutionDiagramData.IconMonster monsterData)
        {
            EvolutionRouteMapData evolutionRouteMapData = new EvolutionRouteMapData();

            evolutionRouteMapData.SetSelectMonster(monsterData);
            CMD_EvolutionRouteMap cmd_EvolutionRouteMap = CMDWrapper.LoadPrefab <CMD_EvolutionRouteMap>("CMD_EvolutionRouteMap");

            cmd_EvolutionRouteMap.parentDialogGameObject = parentDialog;
            cmd_EvolutionRouteMap.routeMapData           = evolutionRouteMapData;
            cmd_EvolutionRouteMap.topButton.SetActive(null != parentDialog);
            cmd_EvolutionRouteMap.Show();
        }
Пример #2
0
        public void OnPushed3DButton()
        {
            CMD_EvolutionRouteMap component    = base.GetComponent <CMD_EvolutionRouteMap>();
            EvolutionRouteMapData routeMapData = component.GetRouteMapData();

            EvolutionDiagramData.IconMonster selectMonster = routeMapData.GetSelectMonster();
            Animator component2 = base.gameObject.GetComponent <Animator>();

            if (null != component2)
            {
                ChangeModelViewerAnimationEvent behaviour = component2.GetBehaviour <ChangeModelViewerAnimationEvent>();
                if (null != behaviour)
                {
                    behaviour.SetMonsterData(selectMonster.master.Group.modelId);
                }
                component2.SetTrigger("Show");
            }
        }
Пример #3
0
 public static void CreateDialog(GameObject parentDialog, MonsterClientMaster monsterMaster)
 {
     if (!MonsterPicturebookData.IsReady())
     {
         RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
         APIRequestTask task = MonsterPicturebookData.RequestUserPicturebook();
         AppCoroutine.Start(task.Run(delegate
         {
             RestrictionInput.EndLoad();
             CMD_EvolutionRouteMap.CreateDialog(parentDialog, CMD_EvolutionRouteMap.CreateMonsterData(monsterMaster));
         }, delegate(Exception noop)
         {
             RestrictionInput.EndLoad();
         }, null), false);
     }
     else
     {
         CMD_EvolutionRouteMap.CreateDialog(parentDialog, CMD_EvolutionRouteMap.CreateMonsterData(monsterMaster));
     }
 }