Skip to content

Instantly share code, notes, and snippets.

@Gerjo
Last active January 14, 2016 13:39
Show Gist options
  • Save Gerjo/04baa4c759df4847af1e to your computer and use it in GitHub Desktop.
Save Gerjo/04baa4c759df4847af1e to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class LoadMain : MonoBehaviour
{
static int i = 0;
void OnEnable()
{
if(i++ == 0)
Application.LoadLevel("main");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment