// Use this for initialization void Start() { appController = transform.root.gameObject.GetComponent<AppliController>(); GameScene gameScene = appController.GetCurrentScene().GetComponent<GameScene>(); gameController = gameScene.gameController; nextLevel = -1; audioSource = GetComponent<AudioSource>(); levelState = _eLevelState.STAND; levelTableScript = gameScene.levelTables; levelChangePrefab = Resources.Load<GameObject>(levelChangePath); animationPrefab = Resources.Load<GameObject>(animationPath); gOption = gameScene.gameUI.gamePause; // gameScene.gameUI.gameInfoCanvas.GetComponentInChildren<fieldImage>().gameObject.GetComponent<Button>().onClick.AddListener(TouchChange); }