示例#1
0
    static void Main(string[] args)
    {
        TestPointer test = new TestPointer();

        test.function1(() => test.function2());           // Error here: The name 'function2' does not exist in     current context

        Console.ReadLine();
    }
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(instance);
     }
 }
示例#3
0
    static void Main(string[] args)
    {
        TestPointer test = new TestPointer();

        test.function1();
    }