DontDestroyOnLoadTag.cs 195 B

1234567891011
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class DontDestroyOnLoadTag : MonoBehaviour
  5. {
  6. void Awake()
  7. {
  8. DontDestroyOnLoad(this);
  9. }
  10. }