Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        if (follower.GetFSM().CurrentState() == follower.States.HandClapingState)
        {
            // follower.PlusWaittime();
            timeclock += Time.deltaTime;
            // Debug.Log("follower is claping hands");
            PeopleAC.ClapHands();
            ClapHandsEffect.Instance().StartClapHandsEffet();
        }
        if (follower.GetWaittime() >= 3.2)
        {
            PeopleAC.StopClapHands();
            ClapHandsEffect.Instance().StopClapHandsEffet();
        }

        //follower.CleanWaittime();
        timeclock = 0;
    }