Kizspy | Question: 40
(Choose 1 answer)
What does this script do?
using UnityEngine;
public class EventSubscriber: MonoBehaviour {
void Start() {
GameManager.Instance.OnGameOver += HandleGameOver;
void HandleGameOver() {
Debug.Log("Game Over!");
}
A. Moves the GameObject on game over
B. Subscribes to a game over event and logs a message
C. Changes the GameObject's material
D. Triggers an animation