Kept on getting these errors:
BCE0005: Unknown identifier: ‘dieGameObject’ ,
BCE0005: Unknown identifier: ‘dieValueComponent’ ,
BCE0005: Unknown identifier: ‘dieTextGameObject’ ,
BCE0005: Unknown identifier: ‘textMeshComponent’ .
For this:
`public var currentValue = 0;
public var faceValue = 0;
function OnTriggerEnter( other : Collider ) {
dieGameObject = GameObject.Find(“SixSidedDie”);
dieValueComponent = dieGameObject.GetComponent(“DieValue”);
dieValueComponent.currentValue = faceValue;
Debug.Log(faceValue);
}
function Start () {
}
function Update () {
dieTextGameObject = GameObject.Find(“DieText”);
%|-1833594845_2|%
%|898592795_3|%
}`