Kizspy | Question: 11
(Choose 1 answer)
What does this script do?
using UnityEngine;
public class AlState: MonoBehaviour {
public enum State { Idle, Patrol }
public State currentState;
void Update() {
if (currentState ==State.Patrol) {
Debug.Log("Patrolling");
A. Moves the GameObject based on state
B. Logs a message when in Patrol state
C. Changes the GameObject's material
D. Triggers an animation