public void DispatchToMainThread(VoidIntDelegate call, int value) { MainThreadEvent evt = new MainThreadEvent(); evt.callVoidIntFuncEvents += call; evt.intParam = value; this.DispatchToMainThread(evt); }
private void OnDisable() { if (tag == "ColourPellet") { Functions -= PlayerController.ChangePlayerLayer; } if (tag == "Portal") { Functions += PlayerController.TeleportPlayer; } PlayerController.PlayerMovedUnit -= CheckTaken; }