Uma script update

This commit is contained in:
左右看
2023-07-01 12:33:16 +08:00
parent 33943e4205
commit 1642fabc93
65 changed files with 2133 additions and 238 deletions
+12
View File
@@ -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);
}
}