예제 #1
0
        public override void Update()
        {
            Vel       = Vel.Multiply(friction);
            turnRate *= friction;
            theta     = turnRate;

            if (!cdHandler.IsOnCooldown())
            {
                Kill(Team.None);
            }

            base.Update();
        }
예제 #2
0
        public override void Update()
        {
            if (cdHandler != null)
            {
                if (cdHandler.IsOnCooldown())
                {
                    Vel       = Vel.Multiply(friction);
                    turnRate *= friction;
                    theta     = turnRate;

                    colorIndex = SwinGame.Rnd(colors.Count);
                }
                else
                {
                    Kill(Team.None);
                }
            }

            base.Update();
        }