craiyon logo

A glowing-eyed zombie in a suit lunges forward against a dark blue background with abstract circuit lines and garbled computer code.

A glowing-eyed zombie in a suit lunges forward against a dark blue background with abstract circuit lines and garbled computer code.

using UnityEngine; using UnityEngine.SceneManagement; public class PlayButton : MonoBehaviour { public Animator zombieAnimator; public void OnPlayPressed() { zombieAnimator.SetTrigger("WakeUp"); StartCoroutine(LoadGameScene()); } private IEnumerator LoadGameScene() { yield return new WaitForSeconds(3f); // tempo per l’animazione SceneManager.LoadScene("GameScene"); } } See more