Exemplo n.º 1
0
        public UnityEngine.Component getGameObjectByTypeName(string parentName, string typeName)
        {
            string str = parentName + " ====== getGameObjectByTypeName " + typeName;

            Debug.Log(str);
            return(SATransform.Find(parentName).GetComponent(typeName));
        }
Exemplo n.º 2
0
        protected override void init()
        {
            base.init();
            Transform tf = SATransform.Find("lblScore");

            lblScore = tf.GetComponent <UILabel>();
        }
Exemplo n.º 3
0
 public GameObject getGameObjectForName(string objectName)
 {
     return(SATransform.Find(objectName).gameObject);
 }