(Choose 1 answer)
Choose the correct statement for creating a new Vector3 with given x, y, z components.
A. public class Vector3Example: MonoBehaviour
Vector3 myVector;
void Start()
FUOVERFLOWIGO{
}
} myVector = new Vector3(0.0f, 1.0f, 0.0f);
B. public class Vector3Example: IMonoBehaviour
{ Vector3 myVector;
void Start()
{ } myVector = new Vector3(0.0f, 1.0f, 0.0f);
}
FUOVERFLO.COM
C. public class Vector3CtorExample: MonoBehaviour
{ Vector3 myVector;OVERFLOW.COM
void Start()
{ } myVector = new Vector3(0.0f, 1.0f, null, null);
}
D. None of the others.
}
Exit 16