// and just as before add those as callbacks to the actions private void Awake() { OnContactBegin -= OnContactBeginInvokeEvent; OnContactBegin += OnContactBeginInvokeEvent; OnPerControllerContactBegin -= OnPerControllerContactBegin += }
private void OnDestroy() { OnContactBegin -= OnContactBeginInvokeEvent; OnPerControllerContactBegin -= OnPerControllerContactBeginInvokeEvent; }