/// <summary> /// Set the method that should be called when the correct swipe is performed. /// </summary> /// <param name="m"></param> /// <param name="s"></param> public void SetWaitingForInput(Action m, waitForSpecificSwipe s) { waitingForinput = m; waitingForSpecificInput = s; }
private void DoneWaiting() { waitingForSpecificInput = 0; waitingForinput = null; }
public void Setup(string t, waitForSpecificSwipe stop) { UItext.text = t; GameObject.FindObjectOfType <InputManager>().SetWaitingForInput(Unpause, stop); }