void Awake() { bc = GetComponent <BoxCollider2D>();//BoxCollider2D를 넣어줌 EM = GameObject.FindWithTag("ENEMY").GetComponent <Enemy>(); SC = GameObject.Find("Center").GetComponent <ScoreTimeCtrl>(); PLAYER = GameObject.Find("player_0(Clone)").GetComponent <PlayerCtrl>(); animator = GetComponent <Animator>(); }
void Awake() { SC = GameObject.Find("Center").GetComponent <ScoreTimeCtrl>(); }