public IEnumerator End(int x) { for (int i = 3; i >= 1; i--) { yield return(new WaitForSeconds((float)1.5f)); } uı = GameObject.Find("UIManager").GetComponent <UIManagerController> (); uı.compare(x); SceneManager.LoadScene("Menu"); }
void Start() { this.cameraController = Camera.main.GetComponent <CameraController> (); this.spawnStuffController = GameObject.FindWithTag("GameController"). GetComponent <GameSpawnStuffController>(); this.scoreController = GameObject.FindWithTag("GameController"). GetComponent <GameScoreController>(); this.beeController = GameObject.FindWithTag("bee"). GetComponent <BeeController>(); this.jarController = GameObject.FindWithTag("jar"). GetComponent <JarController>(); this.uiManagerController = GameObject.Find("UIManager").GetComponent <UIManagerController> (); audioSource = GetComponents <AudioSource>(); }
private void Start() { playerMoveScript = FindObjectOfType <Howling.PlayerMoveScript>(); uiManagerController = FindObjectOfType <UIManagerController>(); startPosAtk = new Vector3(0, 0, -0.4f); }
// ----------------- UI - Start -------------- void Awake() { s_instance = this; }