GetComponent("SomeScript") != null). {. // Ok so it has SomeScript on it. } Above code is C#. I doubt JS is much different, if at all.
確定! 回上一頁