Цитата (Левша)
Цитата
как вызвать функцию из GameObject?
Код
GameObject.GetComponent(ИмяСкрипта).ИмяФункции();
Cм. так же метод Message.
Спасибо, сейчас попробую.Добавлено (18.03.2013, 17:13)
---------------------------------------------
error CS1061: Type `UnityEngine.Component' does not contain a definition for `SetItemName' and no extension method `SetItemName' of type `UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?) Ошибочка вышла. При попытке выполнить
Цитата (Левша)
GameObject.GetComponent(ИмяСкрипта).ИмяФункции();
Добавлено (18.03.2013, 17:36)
---------------------------------------------
О! Все, разобрался. Спасибо ![biggrin](http://s26.ucoz.net/sm/23/biggrin.gif)