public void WingFold(Packet packet) { lastMessage = (Message_WingFold)((PacketSingle)packet).message; if (lastMessage.UID != networkUID) { return; } if (lastMessage.folded) { wingController.SetDeployed(); } else { wingController.SetDefault(); } }
private void Awake() { lastMessage = new Message_WingFold(false, networkUID); Networker.WingFold += WingFold; }