Пример #1
0
        protected override void ExecuteStrategy()
        {
            base.ExecuteStrategy();

            //set new random vector and random timer threshhold
            if (!cdHandler.IsOnCooldown())
            {
                Vector newDir = Util.RandomUnitVector();
                cdHandler.StartNewThreshhold(Util.Rand(turnCooldown));
            }

            TryRotate();

            if (controlled.ShouldThrust(targetDir))
            {
                ThrustForward();
            }
        }