Skip to content

Instantly share code, notes, and snippets.

@crappygraphix
Last active August 29, 2015 14:04
Show Gist options
  • Save crappygraphix/5868374b50a0e60b19fe to your computer and use it in GitHub Desktop.
Save crappygraphix/5868374b50a0e60b19fe to your computer and use it in GitHub Desktop.
Main() function in Unity3d C# Script
using UnityEngine;
using System.Collections;
public class SillyTest : MonoBehaviour {
void Main(){
Debug.Log("Main: Interesting");
}
void OnEnable(){
Debug.Log("OnEnable: I see.");
}
void Awake(){
Debug.Log("Awake: Okay");
}
void Start () {
Debug.Log("Start: Hrm...");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment