MessengerHelper.cs 236 B

123456789101112131415
  1. using System;
  2. using UnityEngine;
  3. public sealed class MessengerHelper : MonoBehaviour
  4. {
  5. private void Awake()
  6. {
  7. UnityEngine.Object.DontDestroyOnLoad(base.gameObject);
  8. }
  9. public void OnDisable()
  10. {
  11. OVRMessenger.Cleanup();
  12. }
  13. }