예제 #1
0
파일: MarshalTests.cs 프로젝트: Egoole/NHSE
        public void TurnipMarshal()
        {
            var obj   = new TurnipStonk();
            var bytes = obj.ToBytesClass();

            bytes.Length.Should().Be(TurnipStonk.SIZE);
        }
예제 #2
0
    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);
        }
    }