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); } }
static void Main(string[] args) { TestPointer test = new TestPointer(); test.function1(); }