Esempio n. 1
0
    public void OnTriggerEnter(Collider other)
    {
        PlayerCharacter player = other.GetComponent <PlayerCharacter>();
        AICharacter     ai     = other.GetComponent <AICharacter>();

        if (player)
        {
            StartCoroutine(LateTransate());
            UiManager.manager.Finish();
            player.Dance();
        }
        if (ai)
        {
            ai.SetMovenet(false);
            ai.Dance();
        }
    }