void Start() { // image = GetComponent<Image>(); // image.gameObject.SetActive(false); talkText.text = "여기는 통신병, 임무 수행을 원활하게 진행하기 위해서 방침을 알려주겠다"; timer = 0.0f; waitingTime = 2; enemyControl = Enemy.gameObject.GetComponent <EnemyControl>(); Enemy.SetActive(false); enemyButtonCreator = Enemy.gameObject.GetComponent <EnemyButtonCreator>(); fade = Black.gameObject.GetComponent <FadeScript>(); // enemyControl.isPause = false; Debug.Log("enemyControl's variable isPause is " + enemyControl.isPause); }
void Start() { enemyButtonCreator = GetComponent <EnemyButtonCreator>(); anim = GetComponent <Animator>(); }