您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
24 行
620 B
24 行
620 B
using GameplayIngredients.Actions;
|
|
using GameplayIngredients;
|
|
using UnityEngine;
|
|
using NaughtyAttributes;
|
|
|
|
public class RefreshLPPVAction : ActionBase
|
|
{
|
|
private LightProbeProxyVolume[] volumes;
|
|
[ReorderableList]
|
|
public Callable[] onRefreshComplete;
|
|
private void OnEnable()
|
|
{
|
|
volumes = GameObject.FindObjectsOfType<LightProbeProxyVolume>();
|
|
}
|
|
|
|
public override void Execute(GameObject instigator = null)
|
|
{
|
|
foreach (LightProbeProxyVolume volume in volumes)
|
|
{
|
|
volume.Update();
|
|
}
|
|
Callable.Call(onRefreshComplete, this.gameObject);
|
|
}
|
|
}
|