NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Framework/VersionUpdate/VersionUpdater.cs

27 lines
690 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AddressableAssets.ResourceLocators;
using UnityEngine.ResourceManagement.AsyncOperations;
public class VersionUpdateParam
{
public AsyncOperationHandle OP { get; private set; }
public VersionUpdateParam(AsyncOperationHandle oP)
{
OP = oP;
}
}
public class VersionUpdater
{
private static void SetVersionUpdateUIParam(AsyncOperationHandle op)
{
VersionUpdateParam param = new VersionUpdateParam(op);
var versionUpdateUI = UnityEngine.Object.FindObjectOfType<UI_VersionUpdate>();
versionUpdateUI.SetParams(param);
}
}