void Start() { m_audio = GetComponent <AudioCharacterBoss>(); m_triggerableAI = GetComponent <TriggerableAI>(); m_health = GetComponent <AIDamage>(); m_movement = GetComponent <AIMovementHelper>(); m_shooting = GetComponent <ShootingHelper>(); m_visuals = GetComponent <BossVisuals>(); m_player = GameMaster.GetPlayer(); m_camera = GameMaster.GetPlayerCamera(); }
void Start() { m_player = GameMaster.GetPlayer(); m_triggerableAI = GetComponent <TriggerableAI>(); m_movement = GetComponent <AIMovementHelper>(); m_rigidbody = GetComponent <Rigidbody2D>(); m_shooting = GetComponent <ShootingHelper>(); m_enemyAudio = GetComponent <AudioCharacterEnemy>(); m_combatRange = Random.Range(m_combatRangeMin, m_combatRangeMax); if (m_attackSpeed > 0) { float attackRate = (1 / m_attackSpeed); m_attackCooldown += Random.value * attackRate; } }
void Start() { m_player = GameMaster.GetPlayer(); m_triggerableAI = GetComponent <TriggerableAI>(); m_movement = GetComponent <AIMovementHelper>(); }