Stop cloning entity settings through MessagePack
This commit is contained in:
parent
b2721191a4
commit
c8832e147a
3 changed files with 11 additions and 5 deletions
|
|
@ -10,7 +10,6 @@ using System.Linq;
|
|||
using Cinemachine;
|
||||
using Ink;
|
||||
using Ink.Runtime;
|
||||
using MessagePack;
|
||||
using TMPro;
|
||||
using UniRx;
|
||||
using UnityEngine;
|
||||
|
|
@ -202,7 +201,7 @@ public class ActionGameManager : MonoBehaviour
|
|||
|
||||
public EntitySettings NewEntitySettings
|
||||
{
|
||||
get => MessagePackSerializer.Deserialize<EntitySettings>(MessagePackSerializer.Serialize(Settings.GameplaySettings.DefaultEntitySettings));
|
||||
get => Settings.GameplaySettings.DefaultEntitySettings.Copy();
|
||||
}
|
||||
|
||||
public void SaveLoadout(EntityPack pack)
|
||||
|
|
|
|||
Loading…
Reference in a new issue