public IEnumerator enemyDeath() { monsterDeath?.Invoke(enemyMonster); yield return(new WaitForSecondsRealtime(1f)); //Enable Roll button. playerAttack.SetActive(true); //Change the camera back to the board camera view. cameras.changeCameras(); //Resumes the game to keep player from rolling while in combat. sceneManage.ResumeGame(); //Resets the enemy health to full to not conflict when changing soaces, enemyHealth = monster.HP; //Turns off combat canvas combatCanvas.SetActive(false); //enables board canvas boardCanvas.SetActive(true); //Enables board UI boardUI.SetActive(true); //Invokes the Monster Event to reset player scale. monsterEvent?.Invoke(monster); }