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