public TDCCreature(TDCBaseController ctrl, TDCBaseData data)
        : base(ctrl, data)
    {
        m_Controller = ctrl as TDCCreatureController;
        m_Data = data as TDCCreatureData;

        m_SkillSlotComponent = new TDCSkillSlotComponent(this);
        m_SkillSlotComponent.CreateActiveSkillSlot(m_Data.ActiveSkill);
    }
Esempio n. 2
0
    public TDCSeason(TDCBaseController ctrl, TDCBaseData data)
        : base(ctrl, data)
    {
        m_Controller = ctrl as TDCSeasonController;
        m_Data = data as TDCSeasonData;

        m_SkillSlotComponent = new TDCSkillSlotComponent(this);
        m_SkillSlotComponent.CreateActiveSkillSlot(TDCEnum.EGameType.WeatherNormalSkill,
                                                    TDCEnum.EGameType.WeatherRainySkill,
                                                    TDCEnum.EGameType.WeatherOverHeatSkill,
                                                    TDCEnum.EGameType.WeatherWindySkill,
                                                    TDCEnum.EGameType.WeatherSnowySkill);
    }