public override void CreateGameObject(ObjectCreationRequest request)
        {
            if (request.ObjectType == typeof(TestTank))
            {
                var item = new TestTank(this.Bus) { Velocity = new Vector2(30, 30) };

                this.GameObjects.Add(item);

                Bus.Add(new ObjectCreated(request.TimeSent, item));
            }
            base.CreateGameObject(request);
        }
示例#2
0
 public virtual void CreateGameObject(ObjectCreationRequest request)
 {
 }