Exemplo n.º 1
0
    private IEnumerator BeginSpawningAnimation()
    {
        yield return(new WaitForSeconds(2f));

        singletonInstance.GetComponent <Animator>().SetBool("isSpawning", true);
        //After spawn animation completes, it calls ActivatePlayer via event. This brings the player on scene and resets the trigger
    }