// private KeywordRecognizer m_Recognizer; // Use this for initialization public void ProcessInput() { //call a variable based on string name? if (touchCount == 1) { dialogueHandler.Narrate("FirstKnock", 2); exHandler.Expression(exHandler.notice, 1.0f); } randCount = UnityEngine.Random.Range(1, 3); switch (randCount) { case 1: if (eggParameter.TotalParameter >= eggParameter.PhaseA) { if (!eggPhysicalAI.isBusy) { eggParameter.AddParameter(0, 2, 0); eggPhysicalAI.RotateTowards(touchPosition); exHandler.Expression(exHandler.notice, 1.0f); } } break; case 2: //Debug.Log("Jumpting towards you"); eggParameter.AddParameter(0, 2, 0); eggPhysicalAI.JumpCloser(touchPosition); break; default: break; } }
// private KeywordRecognizer m_Recognizer; // Use this for initialization public void ProcessInput() { //call a variable based on string name? if (touchCount == 1) { exHandler.Expression(exHandler.notice); } if (eggParameter.TotalParameter >= eggParameter.PhaseA) { if (!eggPhysicalAI.isBusy) { eggPhysicalAI.RotateTowards(touchPosition); } } }