Uma script update
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class DeepCopy
|
||||
{
|
||||
public static void CopyValues<T>(T from, T to)
|
||||
{
|
||||
var json = JsonUtility.ToJson(from);
|
||||
JsonUtility.FromJsonOverwrite(json, to);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user