예제 #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);
            }
        }