protected override void Update(TimeSpan gameTime)
{
this.watchDogTime -= gameTime;
if (this.watchDogTime <= TimeSpan.Zero)
{
typeIndexer = ++typeIndexer % 3;
switch (typeIndexer)
{
case 0:
this.CreateModel(new Vector3(0.1f, 15, 0), Model.CreateCube(), new BoxCollider3D());
break;
case 1:
this.CreateModel(new Vector3(0.01f, 18, 0), Model.CreateSphere(), new SphereCollider3D());
break;
case 2:
this.CreateModel(new Vector3(0, 20, 0), Model.CreateCapsule(), new CapsuleCollider3D());
break;
default:
throw new InvalidCastException("Invalid type.");
}
this.watchDogTime = this.creationTime;
}
}