DontDestroyOnLoadTag.cs 308 B

123456789101112131415161718
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using Mono.UI.Core;
  5. using UnityEngine;
  6. public class DontDestroyOnLoadTag : MonoBehaviour
  7. {
  8. void Awake()
  9. {
  10. DontDestroyOnLoad(this);
  11. }
  12. public void Update()
  13. {
  14. TimeComponent.Instance.Update();
  15. }
  16. }