Exemple #1
0
    // 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);
            }
        }
    }
 void HeatUpMethod()
 {
     StopAllMovements();
     StopCoroutine(eggParameter.ChangeColorVar);
     Debug.Log("Start Heat Up");
     isBusy      = true;
     cBeforeHeat = mat.color;
     heatRed     = mat.color.r;
     HeatUpVar   = IHeatUp();
     StartCoroutine(HeatUpVar);
     exHandler.Expression(exHandler.hot, 1.0f);
 }
    // 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;
        }
    }