public void CopyTo(SPlayerStats destination) { destination.hp = hp; destination.gold = gold; destination.roomNumber = roomNumber; destination.position = position; destination.facingDirection = facingDirection; destination.mesh = mesh; destination.sword = sword; }
private void Reset() { if (stats == null) { stats = ScriptableObject.CreateInstance("SPlayerStats") as SPlayerStats; } stats.hp = statsDefault.hp; stats.gold = statsDefault.gold; stats.position = statsDefault.position; stats.facingDirection = statsDefault.facingDirection; playerStatsChangeEvent.Raise(); }