Skip to content

Instantly share code, notes, and snippets.

@jcguarinpenaranda
Created August 8, 2015 22:36
Show Gist options
  • Save jcguarinpenaranda/1e2f4f58c0cbf43922b6 to your computer and use it in GitHub Desktop.
Save jcguarinpenaranda/1e2f4f58c0cbf43922b6 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class DontDestroy : MonoBehaviour {
// Use this for initialization
void Awake () {
DontDestroyOnLoad(gameObject);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment