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

        playerMask = LayerMask.GetMask("Player");
    }
示例#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;
 }
示例#4
0
 protected virtual void Awake()
 {
     m_Manager  = GetComponentInParent <EnemyManager>();
     m_Movement = GetComponentInParent <EnemyMovement>();
     m_Graphics = GetComponentInParent <EnemyGraphics>();
 }