Exemple #1
0
        public override void Update(Vector2 _offset)
        {
            spawnTimer.UpdateTimer();
            if (spawnTimer.Test())
            {
                SpawnMob();
                spawnTimer.ResetToZero();
            }

            base.Update(_offset);
        }
        public virtual void Update(Vector2 _offset, List <Unit> _units)
        {
            pos += direction * speed;



            timer.UpdateTimer();

            if (timer.Test())
            {
                done = true;
            }

            if (HitSomething(_units))
            {
                done = true;
            }
        }