Example #1
0
        /// <summary>
        /// 注册灵器
        /// </summary>
//		void RegisterSpiritItem()
//		{
//			AbstractSpiritItem.RegisterSpiritItem<TestSpirit>(SpiritName.C_First);
//			AbstractSpiritItem.RegisterSpiritItem<TestSpirit>(SpiritName.C_Second);
//		}

        /// <summary>
        /// 注册Data工厂
        /// </summary>
        void RegisterData()
        {
            TxtManager.RegisterDataFactory <L1Rank>(TxtSign.L1Rank);
            TxtManager.RegisterDataFactory <L2Rank>(TxtSign.L2Rank);
            TxtManager.RegisterDataFactory <S1Rank>(TxtSign.S1Rank);
            TxtManager.RegisterDataFactory <S2Rank>(TxtSign.S2Rank);
        }
Example #2
0
    /// <summary>
    /// 注册Data工厂
    /// </summary>
    void RegisterData()
    {
        TxtManager.RegisterDataFactory <ShitItem>(TxtSign.shitItem);
        TxtManager.RegisterDataFactory <BoxItem>(TxtSign.boxItem);

        TxtManager.RegisterDataFactory <SkillInstance>(TxtSign.skill);

        TxtManager.RegisterDataFactory <L1Rank>(TxtSign.L1Rank);
        TxtManager.RegisterDataFactory <L2Rank>(TxtSign.L2Rank);
        TxtManager.RegisterDataFactory <S1Rank>(TxtSign.S1Rank);
        TxtManager.RegisterDataFactory <S2Rank>(TxtSign.S2Rank);

        TxtManager.RegisterDataFactory <AnimationTrigger>(TxtSign.animation);
        TxtManager.RegisterDataFactory <InstantRayDamageTrigger>(TxtSign.instantDamage);
        TxtManager.RegisterDataFactory <AudioTrigger>(TxtSign.audio);
        TxtManager.RegisterDataFactory <DashTrigger>(TxtSign.dash);
        TxtManager.RegisterDataFactory <DirectLineBulletTrigger>(TxtSign.bullet);
        TxtManager.RegisterDataFactory <SwordTrigger>(TxtSign.trigger2D);
        TxtManager.RegisterDataFactory <ParabloaBulletTrigger>(TxtSign.paraBullet);
    }