Q11.webp
T

Q11.webp

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

Thông tin

Category
FGU301
Thêm bởi
thuyhoa276
Ngày thêm
Lượt xem
229
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom