BCE0019: "активный" не является членом "unityengine.transform"
#pragma strict var target : Transform; function Start () { } function Update () { if(target.active){ gameObject.transform.position.x= target.transform.position.x; gameObject.transform.position.z= target.transform.position.z; } }
Что я уже пробовал:
#pragma strict var target : Transform; function Start () { } function Update () { if(target.active){ gameObject.transform.position.x= target.transform.position.x; gameObject.transform.position.z= target.transform.position.z; } } transform.active = false; else{ transform.active = true; }