public void TurnipMarshal() { var obj = new TurnipStonk(); var bytes = obj.ToBytesClass(); bytes.Length.Should().Be(TurnipStonk.SIZE); }
public void SetTurnipValues() { try { byte[] bytes = new byte[TurnipStonk.SIZE]; bytes = currentStonk.ToBytesClass(); CurrentConnection.WriteBytes(bytes, CurrentTurnipAddress); if (UI_ACItemGrid.LastInstanceOfItemGrid != null) { UI_ACItemGrid.LastInstanceOfItemGrid.PlayHappyParticles(); } } catch (Exception e) { Debug.LogError(e.Message); PopupHelper.CreateError(e.Message, 2f); } }