Exemplo n.º 1
0
 //Updates the physics data and displays in console
 static void updatePhysics(object sender, PhysicsEventArgs e)
 {
     Console.WriteLine("Physics Data:");
     Console.WriteLine("Fuel:   " + e.PhysicsData.Fuel);
     Console.WriteLine("Gear:   " + e.PhysicsData.Gear);
     Console.WriteLine("Road temp:   " + e.PhysicsData.RoadTemp);
 }
Exemplo n.º 2
0
 public virtual void OnPhysicsUpdated(PhysicsEventArgs e)
 {
     if (PhysicsDataUpdated != null)
     {
         PhysicsDataUpdated(this, e);
     }
 }