This commit is contained in:
CortexCore
2024-05-31 01:23:15 +08:00
parent c798b224be
commit 299082fe27
164 changed files with 3604 additions and 2018 deletions

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using YooAsset;
namespace BITKit
{
public class YooAssetVersionEvent : MonoBehaviour
{
[SerializeReference, SubclassSelector] private IReference packageName;
[SerializeField] private UnityEvent<string> output;
private void Start()
{
var package = YooAssets.GetPackage(packageName.Value);
output?.Invoke(package.GetPackageVersion());
}
}
}