Пример #1
0
        public GameManager()
        {
            RedTeamBase = BlueTeamBase = Vector2.Zero;

            RedHealingPoint  = new Rectangle();
            BlueHealingPoint = new Rectangle();

            RedLeader  = null;
            BlueLeader = null;
        }
Пример #2
0
        private void CreateLeader(string Name, Sprite Sprite, Team Team, Vector2 Position)
        {
            LeaderUnit L = new LeaderUnit(Name, Sprite, World, new Vector2(0.55f, 0.55f));

            L.Transform.Position     = Position;
            L.Collider.Body.Position = ConvertUnits.ToSimUnits(L.Transform.Position);
            L.Team = Team;

            L.AddSteering(SteeringType.PathFollowing);

            Units.Add(L);
        }