ZoeAppClass/Library/PackageCache/com.unity.addressables@1.1.10/Runtime/ResourceManager/Util/MonoBehaviourCallbackHooks.cs

22 lines
439 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
internal class MonoBehaviourCallbackHooks : MonoBehaviour
{
public event Action<float> OnUpdateDelegate;
void Awake()
{
DontDestroyOnLoad(gameObject);
}
// Update is called once per frame
void Update()
{
if (OnUpdateDelegate != null)
OnUpdateDelegate(Time.unscaledDeltaTime);
}
}