IEnumerator TeleportTimer() { yield return(new WaitForSeconds(animationTime)); pushCollider.gameObject.SetActive(false); OnActionFinished?.Invoke(); }
protected virtual void Successfull() { Debug.Log(ID + " was sucessful"); OnActionFinished.Invoke(this, new ActionFinishedEventArgs(ActionCallback.Successfull)); }
protected virtual void Failed() { Debug.Log(ID + " was a failure"); OnActionFinished.Invoke(this, new ActionFinishedEventArgs(ActionCallback.Failed)); }