説明なし
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

LifecycleNotifier.cs 485B

1234567891011121314151617181920
  1. using System;
  2. using UnityEngine;
  3. namespace UnityEngine.Purchasing
  4. {
  5. /// <summary>
  6. /// Lifecycle notifier waits to be destroyed before calling a callback.
  7. /// Use to notify script of hierarchy destruction for avoiding dynamic
  8. /// UI hierarchy collisions.
  9. /// </summary>
  10. internal class LifecycleNotifier : MonoBehaviour
  11. {
  12. public Action OnDestroyCallback;
  13. void OnDestroy()
  14. {
  15. OnDestroyCallback?.Invoke();
  16. }
  17. }
  18. }