Stardog

Unity tut class

Mar 26th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class ClassName : Monobehaviour {
  5.  
  6.     //============================================
  7.     // VARIABLES
  8.     //============================================
  9.    
  10.     public float test = 1f;
  11.     public GameObject go;
  12.    
  13.     //============================================
  14.     // FUNCTIONS (UNITY)
  15.     //============================================
  16.    
  17.     void Awake()
  18.     {
  19.        
  20.     }
  21.    
  22.     void Update()
  23.     {
  24.         Debug.Log("Boo");
  25.     }
  26.    
  27.     //============================================
  28.     // FUNCTIONS (CUSTOM)
  29.     //============================================
  30.    
  31.     void MyCustomFunction()
  32.     {
  33.         Debug.Log("Test");
  34.     }
  35.  
  36. }
Add Comment
Please, Sign In to add comment