예제 #1
0
    IEnumerator TeleportTimer()
    {
        yield return(new WaitForSeconds(animationTime));

        pushCollider.gameObject.SetActive(false);
        OnActionFinished?.Invoke();
    }
예제 #2
0
 protected virtual void Successfull()
 {
     Debug.Log(ID + " was sucessful");
     OnActionFinished.Invoke(this, new ActionFinishedEventArgs(ActionCallback.Successfull));
 }
예제 #3
0
 protected virtual void Failed()
 {
     Debug.Log(ID + " was a failure");
     OnActionFinished.Invoke(this, new ActionFinishedEventArgs(ActionCallback.Failed));
 }