//////////////////////////////////////////////////////////////// override public bool Init(MenuParams parms) { m_parms = parms; //if(m_Creature == null || parms.bBack == false) m_Creature = parms.GetObject <Creature>(); if (parms.bBack == true && CreatureManager.Instance.Contains(m_Creature) == false) { return(false); } m_MaterialCreatures = parms.GetObject <List <Creature> >("MaterialCreatures"); Init(parms.bBack); return(true); }
//////////////////////////////////////////////////////////////// override public bool Init(MenuParams parms) { m_parms = parms; //if(m_Creature == null || parms.bBack == false) m_Creature = parms.GetObject <Creature>(); if (parms.bBack == true && CreatureManager.Instance.Contains(m_Creature) == false) { return(false); } m_Creatures = parms.GetObject <List <Creature> >("Creatures"); if (m_Creatures != null) { m_Creatures = m_Creatures.Where(c => CreatureManager.Instance.Contains(c)).ToList(); } parms.AddParam("Creatures", m_Creatures); Init(); return(true); }
//////////////////////////////////////////////////////////////// override public bool Init(MenuParams parms) { m_StageInfo = parms.GetObject <MapStageDifficulty>(); if (m_Heroes != null) { m_Heroes.ForEach(e => DestroyImmediate(e.gameObject)); m_Heroes = null; } toggle_menus[0].value = true; Init(); return(true); }
//////////////////////////////////////////////////////////////// override public bool Init(MenuParams parms) { //if(m_Creature == null || parms.bBack == false) m_Creature = parms.GetObject <Creature>(); InitBatchLabel(); if (parms.bBack == true && CreatureManager.Instance.Contains(m_Creature) == false) { return(false); } Init(parms.bBack); return(true); }
//////////////////////////////////////////////////////////////// override public bool Init(MenuParams parms) { m_parms = parms; //if(m_Creature == null || parms.bBack == false) m_Creature = parms.GetObject <Creature>(); object show_evolve_param = parms.GetObject("show_evolve"); bool show_evolve = false; if (show_evolve_param != null) { show_evolve = (bool)show_evolve_param; } if (parms.bBack == true && CreatureManager.Instance.Contains(m_Creature) == false) { return(false); } m_EnchantCreature = parms.GetObject <Creature>("EnchantCreature"); Init(parms.bBack, show_evolve); return(true); }
//////////////////////////////////////////////////////////////// override public bool Init(MenuParams parms) { object parm_obj = parms.GetObject("StoreTab"); if (parm_obj != null) { init_tab = parm_obj as string; } if (parms.bBack == false) { Init(); } return(true); }