示例#1
0
 public ReplicatedEntityData(WeakAssetReference guid)
 {
     AssetGuid          = guid;
     NetId              = -1;
     Id                 = -1;
     PredictingPlayerId = -1;
 }
示例#2
0
        public void SetAssetGUID(string guidStr)
        {
            var assetGuid = new WeakAssetReference(guidStr);

            if (!assetGuid.Equals(guid))
            {
                guid = assetGuid;
                EditorUtility.SetDirty(this);
            }
        }