// Use this for initialization void Start() { ty = GameObject.Find("Ty"); anim = ty.GetComponent <Animator>(); talkingScript = GetComponentInChildren <Text>(); curState = WAIT_SERVER_RESPONSE; lastState = WAIT_SERVER_RESPONSE; touchScreenKeyboard = TouchScreenKeyboard.Open(string.Empty, TouchScreenKeyboardType.Default); // For blackboard text. text = GameObject.Find("Text"); ts = text.GetComponent <textScript> (); //For input text. GameObject inputObject = GameObject.Find("InputField"); ist = inputObject.GetComponent <InputScript> (); // // For submit button. // btn = GameObject.Find("Button"); // submitBtn = btn.GetComponent<Button> (); // submitBtn.onClick.AddListener(TaskOnClick); StartCoroutine("startLogics"); }
// Use this for initialization void Start() { textScriptInstantion = (textScript)txt.GetComponent(typeof(textScript)); txtx = GetComponent <Text> (); //Debug.Log (textScriptInstantion.output); txtx.text = textScriptInstantion.output; }
void Start() { gun = gunMoveScript.Instance; curHp = totleHp; game = gameConllerScript.Instance; text = textScript.Instance; }
void Start() { textScriptInstantion = (textScript)txt.GetComponent(typeof(textScript)); Debug.Log(textScriptInstantion.output); /*GameObject userInput = GameObject.Find("userInput"); * textScript gowno = userInput.GetComponent<textScript>(); * string gowienko = gowno.output; */ }
// Use this for initialization void Start() { myText = GameObject.Find("Text").GetComponent <textScript>(); myCamera = GameObject.Find("Main Camera").GetComponent <cameraScript>(); blocks = new GameObject[transform.childCount]; for (int i = 0; i < transform.childCount; i++) { blocks[i] = transform.GetChild(i).gameObject; } blockCount = blocks.Length; spawnBlock(); }
private void Flip(float horizontal) { textScript text = this.GetComponentInChildren(typeof(textScript)) as textScript; if (horizontal < 0 && !isFacingLeft || horizontal > 0 && isFacingLeft) { isFacingLeft = !isFacingLeft; this.transform.Rotate(0f, 180f, 0f); text.transform.Rotate(0f, -180f, 0f); text.transform.Translate(new Vector3(-2f, 0f)); } }
void Start() { // 3秒后子弹消失 GameObject.Destroy(gameObject, 3); text = textScript.Instance; }
void Awake() { Instance = this; }