Im trying since hours but no result. The UNITY API is extremely frustrating.
Impossible getting to work…
strong textWhy does this not work? unity says:
Assets/Retro Pixel/Scripts/NewBehaviourScript.js(19,13): BCE0019: ‘isActiveAndEnabled’ is not a member of ‘boolean’.
BUT IN THE API EXAMPLE isActiveAndEnabled is declared it is a BOOL !!!
Do why does unity makes problems.
Can anybody help ? Please
#pragma strict
var triggr:boolean;
function Start () {
}
function Update () {
if (triggr.isActiveAndEnabled)
{
print("text");
}
}