Что то не получается отключить выполнение скрипта чилда (sPart.cs) в скрипте родителя (sParent.cs). Код:
public class sParent : MonoBehaviour {
public GameObject part;
public sPart sPartA ;
void Start ()
{
sPartA=part.GetComponent<sPart>();
}
// Update is called once per frame
void Update ()
{
.................................................
sPartA.enable=false;
........................................................
Здесь Юнити ругается на ошибки компилятора -
error CS1061: Type `sPart' does not contain a definition for `enable' and no extension method `enable' of type `sPart' could be found (are you missing a using directive or an assembly reference?)
Скрипт sPart существует и прикреплен к чилду как положено...
ВОПРОС СНЯТ - ДОСАДНАЯ ОШИБКА В НАПИСАНИИ enabled !!!