Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
XnDontDestroyOnLoad.cs 203 B
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class XnDontDestroyOnLoad : MonoBehaviour {
    void Awake() {
        DontDestroyOnLoad( this.gameObject );
    }
}