// Use this for initialization void Start() { playerRefer = GameObject.Find("Mario").GetComponent <Player_controller> (); testItem = GameObject.FindGameObjectWithTag("block").GetComponentInChildren <ChildScript>(); stop = GameObject.FindGameObjectWithTag("block").GetComponentInChildren <contactCheck> (); }
// Use this for initialization void Start () { playerRefer = GameObject.Find ("Mario").GetComponent<Player_controller> (); testItem = GameObject.FindGameObjectWithTag("block").GetComponentInChildren<ChildScript>(); stop = GameObject.FindGameObjectWithTag ("block").GetComponentInChildren<contactCheck> (); }