Beispiel #1
0
 private void Start()
 {
     m_Movement = GetComponent <EnemyMovement>();
     m_Room     = GetComponentInParent <Room>();
     m_Data.ResetAllStatsDefault();
     m_Graphics       = GetComponent <EnemyGraphics>();
     m_DeathParticles = GetComponentInChildren <ParticleSystem>();
 }
Beispiel #2
0
    void Awake()
    {
        movement      = GetComponent <EnemyMovementController> ();
        enemyGraphics = GetComponent <EnemyGraphics> ();
        enemyPunch    = GetComponent <EnemyPunchingController> ();

        playerMask = LayerMask.GetMask("Player");
    }
Beispiel #3
0
 protected virtual void Awake()
 {
     m_RB            = GetComponent <Rigidbody2D>();
     m_Manager       = GetComponent <EnemyManager>();
     m_Graphics      = GetComponent <EnemyGraphics>();
     m_Spawn         = transform.position;
     m_ExternalForce = Vector2.zero;
     m_TargetDir     = Vector2.zero;
 }
Beispiel #4
0
 protected virtual void Awake()
 {
     m_Manager  = GetComponentInParent <EnemyManager>();
     m_Movement = GetComponentInParent <EnemyMovement>();
     m_Graphics = GetComponentInParent <EnemyGraphics>();
 }