// Use this for initialization void Start() { movetomonkeyhand = false; movetobucket = false; Monkey = GameObject.FindGameObjectsWithTag("Monkey"); Tank = GameObject.FindGameObjectWithTag("Tank").GetComponent <Animator>(); Wheel = GameObject.FindGameObjectWithTag("wheel").GetComponent <Animator>(); KK = GameObject.FindGameObjectWithTag("kk").GetComponent <Animator>(); bucket = GameObject.FindGameObjectWithTag("MergeLetter"); monkeyhand = GameObject.FindGameObjectWithTag("Monkey"); WM = GameObject.FindObjectOfType <WFManager> ().GetComponent <WFManager> (); UM = GameObject.FindObjectOfType <UIManager> ().GetComponent <UIManager> (); }
// Use this for initialization void Start() { WM = GameObject.FindObjectOfType <WFManager> ().GetComponent <WFManager> (); //Monkey = GameObject.FindGameObjectWithTag("Monkey"); count = 0; count1 = 0; count2 = 0; //rb = this.transform.GetComponent<Rigidbody2D> (); // GameObject waypoint=GameObject.FindGameObjectWithTag("WayPoint"); int temprand = Random.Range(0, letterspool.Length - 1); thisletter = letterspool [temprand]; if (thisletter == WM.Word [WM.counter].ToString()) { thisletter = letterspool[temprand + 1]; } this.GetComponent <TextMesh> ().text = thisletter; path = MainPath[0]; }
void Start() { WM = GameObject.FindObjectOfType <WFManager> ().GetComponent <WFManager> (); PauseGame(); }
// Use this for initialization void Start() { wffillbar = this.GetComponent <Image> (); WM = GameObject.FindObjectOfType <WFManager> ().GetComponent <WFManager> (); }