public override void ReceiveMessage(IGameMessage msg) { switch (msg.EventId) { case (int)MessageId.NearbyEntityQueuedForDeath: { CatchNearbyEntityDying(msg.AsNearbyEntityQueuedForDeath()); break; } case (int)MessageId.NetworkReinitialize: { Reset(); break; } case (int)MessageId.FrameBegin: { Update(); break; } } }