예제 #1
0
        internal static void SetGuid(GameObject target, string guid)
        {
            ObjectGuid objectGuid = target.GetComponent <ObjectGuid>();

            if (objectGuid == null)
            {
                objectGuid = target.AddComponent <ObjectGuid>();
            }

            objectGuid.Restore(guid);
            ObjectGuidManager.RegisterGuid(guid, target);
        }