Exemplo n.º 1
0
 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>();
 }
Exemplo n.º 2
0
 void Awake()
 {
     SC = GameObject.Find("Center").GetComponent <ScoreTimeCtrl>();
 }