You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 line
286 B

  1. using System;
  2. using CIG3.ExtensionMethods;
  3. using CIGEnums;
  4. using UnityEngine;
  5. public class DontDestroyOnLoadScript : MonoBehaviour
  6. {
  7. private void Awake()
  8. {
  9. this.DontDestroyObjectOnLoad(this._mode);
  10. }
  11. [SerializeField]
  12. private DontDestroyObjectOnLoadMode _mode;
  13. }