Advertisement
Frank84

Static Constructor

Oct 6th, 2011
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.23 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public static class MyClass
  5. {
  6.     static MyClass()
  7.     {
  8.         Debug.Log("Not called until just before MyFunc is called");
  9.     }
  10.  
  11.     public static void MyFunc()
  12.     {
  13.         Debug.Log("MyFunc");
  14.     }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement