public UnityEngine.Component getGameObjectByTypeName(string parentName, string typeName) { string str = parentName + " ====== getGameObjectByTypeName " + typeName; Debug.Log(str); return(SATransform.Find(parentName).GetComponent(typeName)); }
protected override void init() { base.init(); Transform tf = SATransform.Find("lblScore"); lblScore = tf.GetComponent <UILabel>(); }
public GameObject getGameObjectForName(string objectName) { return(SATransform.Find(objectName).gameObject); }