public void OnChangeSelectMonster(EvolutionDiagramData.IconMonster monsterData) { EvolutionRouteMapData routeMapData = this.dialogRoot.GetRouteMapData(); EvolutionDiagramData.IconMonster selectMonster = routeMapData.GetSelectMonster(); if (selectMonster.master.Simple.monsterId != monsterData.master.Simple.monsterId) { routeMapData.SetSelectMonster(monsterData); this.dialogRoot.UpdateSelectMonster(); this.dialogRoot.UpdateViewList(); } }
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(); }
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"); } }