Inheritance: NetworkBehaviour, IBullet, IPoolable
Ejemplo n.º 1
0
        public BulletTracking GetRateBullet(BulletTracking srcInfo, float rate)
        {
            if (srcInfo == null)
            {
                return(this);
            }
            BulletTracking bulletTracking = new BulletTracking();

            bulletTracking.moveThreshold  = AttackInfo.GetRateValue(moveThreshold, srcInfo.moveThreshold, rate);
            bulletTracking.attackInterval = AttackInfo.GetRateValue(attackInterval, srcInfo.attackInterval, rate);
            bulletTracking.emitInterval   = AttackInfo.GetRateValue(emitInterval, srcInfo.emitInterval, rate);
            bulletTracking.emissionNum    = AttackInfo.GetRateValue(emissionNum, srcInfo.emissionNum, rate);
            bulletTracking.emissionBullet = emissionBullet;
            return(bulletTracking);
        }
Ejemplo n.º 2
0
 public FollowTarget(BulletTracking own)
 {
     this.own = own;
 }
Ejemplo n.º 3
0
 public NoTarget(BulletTracking own)
 {
     this.own = own;
 }