Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     States                  = GetComponent <BaseEnemyMovement>();
     Ani                     = GetComponent <Animator>();
     HUD                     = GameObject.FindGameObjectWithTag("Player").GetComponent <HUDBars>();
     Collider                = GetComponent <BoxCollider2D>();
     EventManager.OnPause   += Pause;
     EventManager.OnUnpause += Unpause;
 }
Exemplo n.º 2
0
 protected virtual void Awake()
 {
     movement     = GetComponent <BaseEnemyMovement>();
     parentEntity = GetComponent <Entity>();
 }