示例#1
0
        protected override void OnCreateInfluence(Influence influence)
        {
            base.OnCreateInfluence(influence);

            if (influence is FastMoveInfluence)
            {
                fastMoveInfluence = (FastMoveInfluence)influence;
            }
            else if (influence is FreezeMoveInfluence)//Incin
            {
                freezeMoveInfluence = (FreezeMoveInfluence)influence;
            }
            else if (influence is FastAttackInfluence)
            {
                fastAttackInfluence = (FastAttackInfluence)influence;
            }
            else if (influence is BigDamageInfluence)
            {
                bigDamageInfluence = (BigDamageInfluence)influence;
            }
            else if (influence is DamageInfluence)
            {
                damageInfluence = (DamageInfluence)influence;
            }
        }
示例#2
0
        protected override void OnCreateInfluence(Influence influence)
        {
            base.OnCreateInfluence(influence);

            if (influence is FastMoveInfluence)
                fastMoveInfluence = (FastMoveInfluence)influence;
            else if (influence is FreezeMoveInfluence)//Incin
                freezeMoveInfluence = (FreezeMoveInfluence)influence;
            else if (influence is FastAttackInfluence)
                fastAttackInfluence = (FastAttackInfluence)influence;
            else if (influence is BigDamageInfluence)
                bigDamageInfluence = (BigDamageInfluence)influence;
            else if (influence is DamageInfluence)
                damageInfluence = (DamageInfluence)influence;
        }
示例#3
0
文件: Dynamic.cs 项目: whztt07/SDK
 protected virtual void OnCreateInfluence( Influence influence )
 {
     //AutomaticInfluences
     for( int n = 0; n < Type.AutomaticInfluences.Count; n++ )
     {
         DynamicType.AutomaticInfluenceItem typeItem = Type.AutomaticInfluences[ n ];
         if( typeItem.Influence == influence.Type )
         {
             if( automaticInfluences == null )
                 automaticInfluences = new Influence[ Type.AutomaticInfluences.Count ];
             automaticInfluences[ n ] = influence;
         }
     }
 }