void SwapLeft() { Hand.GetComponent <Animator>().SetTrigger("left"); GetComponent <AudioController>().Play(0); if (currentBengong.allowLeft) { currentBengong.GetComponent <Animator>().SetTrigger("left"); if (!currentBengong.isNice) { generator.Next(); } else { generator.GameOver("Kamu salah orang, dia tidak bengong tadi"); } } else { if (currentBengong.isNice) { generator.GameOver("Kamu salah orang, dia tidak bengong tadi"); currentBengong.GetComponent <Animator>().SetTrigger("left"); } } }
void EndTime() { if (swapControl.currentBengong.isNice) { generator.Next(); generator.GetComponent <AudioController>().Play(2); } else { swapControl.Hand.SetActive(false); generator.Kerasukan(); generator.GameOver("Terlambat, Orang tersebut kerasukan karena pikirannya kosong"); } }