private void Start() { m_Movement = GetComponent <EnemyMovement>(); m_Room = GetComponentInParent <Room>(); m_Data.ResetAllStatsDefault(); m_Graphics = GetComponent <EnemyGraphics>(); m_DeathParticles = GetComponentInChildren <ParticleSystem>(); }
void Awake() { movement = GetComponent <EnemyMovementController> (); enemyGraphics = GetComponent <EnemyGraphics> (); enemyPunch = GetComponent <EnemyPunchingController> (); playerMask = LayerMask.GetMask("Player"); }
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; }
protected virtual void Awake() { m_Manager = GetComponentInParent <EnemyManager>(); m_Movement = GetComponentInParent <EnemyMovement>(); m_Graphics = GetComponentInParent <EnemyGraphics>(); }