public void EngineTiltUpdate(Packet packet) { lastMessage = (Message_EngineTiltUpdate)((PacketSingle)packet).message; if (lastMessage.networkUID != networkUID) { return; } tiltController.SetTiltImmediate(lastMessage.angle); }
private void Awake() { tiltController = GetComponent <TiltController>(); lastMessage = new Message_EngineTiltUpdate(networkUID, 0); }