void OnAssetUpdated(Spaces.Core.Asset _asset, Spaces.Core.Asset.Process[] last, Spaces.Core.Asset.Process next) { if (asset == _asset && last.Length > 0) { Debug.Log(asset.name + " [Switched State] " + last.ToString() + " => " + next.ToString()); } }
void Start() { exampleComponent = rootTransform.GetComponents <Component>(); exampleWidget = rootTransform.GetComponents <Widget>(); //var request = new Spaces.Core.RestAPI.RestGetAssetData(); //request.Run("74CF4C32-130D-4365-BB55-72AAD2CE3931", "win", OnRequestDataResponse); asset = new Asset("74CF4C32-130D-4365-BB55-72AAD2CE3931"); asset.onProcessEnd += OnAssetUpdated; }