DontDestory.cs 204 B

1234567891011
  1. using UnityEngine;
  2. using System.Collections;
  3. public class DontDestory : MonoBehaviour
  4. {
  5. // Awake is called once per frame
  6. void Awake()
  7. {
  8. DontDestroyOnLoad(this.gameObject);
  9. }
  10. }