DontDestroyOnLoad.cs 180 B

12345678910
  1. using System;
  2. using UnityEngine;
  3. public class DontDestroyOnLoad : MonoBehaviour
  4. {
  5. private void Awake()
  6. {
  7. UnityEngine.Object.DontDestroyOnLoad(base.gameObject);
  8. }
  9. }