Hi guys, I keep getting an error while trying to access a member of the Slider class.
Here’s how I’m accessing the member:
import UnityEngine.UI;
var SliderObject : GameObject;
var Societa : GameObject;
function Start () {
}
function Update () {
SliderObject.GetComponent.().value = Societa.GetComponent.().position.y * 100;
}
Am I doing something wrong? Thank you.