IEnumerator AppPermissionTwo() { yield return(new WaitWhile(DD.IsBusy)); Daphne.TurnOFF(); Runner.Stop(); DialogueCanvas.TurnOFF(); Permission2.TurnON(); yield return(new WaitUntil(Permission2.IsDone)); Daphne.TurnON(); Runner.StartDialogue("postmyth"); DialogueCanvas.TurnON(); yield return(null); }
private void FixedUpdate() { //as long as in the queue, time is of essence. If it is their turn, they will move to counter if (amDone) { AngerManagment(); dialogueRunner.Stop(); StartCoroutine(LeaveCounter()); amDone = false; disposables.Dispose(); return; } if (!myTurn) { WaitingInQueue(); return; } if (!introduced) { Introduce(); introduced = true; } if (moreMoney && action == "deposit") { //_money = (_moneyWanting/2) + Random.Range(-moneyRange, moneyRange); //plz don't overwrite this again if (_money > 0) { GiveMoney(_money); } else { dialogueRunner.dialogueUI.InstantMessage("I already gave you my money!"); } moreMoney = false; } }