protected override void OnControlledObjectChange( Unit oldObject )
{
base.OnControlledObjectChange( oldObject );
//update look direction
if( ControlledObject != null )
lookDirection = SphereDir.FromVector( ControlledObject.Rotation * new Vec3( 1, 0, 0 ) );
//TankGame specific
{
//set small damage for player tank
Tank oldTank = oldObject as Tank;
if( oldTank != null )
oldTank.ReceiveDamageCoefficient = 1;
Tank tank = ControlledObject as Tank;
if( tank != null )
tank.ReceiveDamageCoefficient = .1f;
}
}