Пример #1
0
        public void DeactivateAllLinks()
        {
            SmiteBullet link = this;

            do
            {
                link.BeginDeactivating();
                link = link.Previous;
            } while (link != null);
        }
Пример #2
0
        public void InitFromPreviousLink(SmiteBullet existingLink)
        {
            Previous          = existingLink;
            Head              = existingLink.Head;
            DamageOnHitAny    = existingLink.DamageOnHitAny;
            DamageOnHitTarget = existingLink.DamageOnHitTarget;
            TargetEnemy.CloneFrom(existingLink.TargetEnemy);
            TargetPosition = existingLink.TargetPosition;

            if (!TargetEnemy.IsActive)
            {
                TargetPosition = TargetPosition.WithY(SpaceUtil.WorldMap.Top.y);
            }
        }