Esempio n. 1
0
        public void TryEndTrail(Projectile projectile, float dissolveSpeed)
        {
            for (int i = 0; i < _trails.Count; i++)
            {
                BaseTrail trail = _trails[i];

                if (trail.MyProjectile.whoAmI == projectile.whoAmI && trail is Trail t)
                {
                    t.DissolveSpeed = dissolveSpeed;
                    t.StartDissolve();
                    return;
                }
            }
        }
Esempio n. 2
0
        public void UpdateTrails()
        {
            for (int i = 0; i < _trails.Count; i++)
            {
                BaseTrail trail = _trails[i];

                trail.BaseUpdate();
                if (trail.Dead)
                {
                    _trails.RemoveAt(i);
                    i--;
                }
            }
        }
Esempio n. 3
0
 public void CreateCustomTrail(BaseTrail trail)
 {
     trail.BaseUpdate();
     _trails.Add(trail);
 }