void Awake() { m_particleSystem = GetComponent <ParticleSystem>(); m_emission = m_particleSystem.emission; m_flyingControlScript = transform.root.gameObject.GetComponent <FlyingControl>(); m_maxRate = m_emission.rate.constantMax; m_maxSpeed = m_flyingControlScript.MaxForwardSpeed; }
void Awake() { m_audio = GetComponent <AudioSource>(); m_flyingScript = GetComponentInParent <FlyingControl>(); if (m_flyingScript != null) { m_maxSpeed = m_flyingScript.MaxForwardSpeed; } }
void Awake() { m_flyingControlScript = GetComponent <FlyingControl>(); m_health = GetComponent <EnemyHealth>(); var playerObject = GameObject.FindGameObjectWithTag(Tags.Player); if (playerObject != null) { m_player = playerObject.transform; } m_waitTime = new WaitForSeconds(m_decisionRate); }
void Awake() { m_flyingControlScript = GetComponent <FlyingControl>(); m_numSpawnPoints = m_bulletSpawnPoints.Length; m_muzzleFlashWait = new WaitForSeconds(m_muzzleFlashTime); }
void Awake() { m_flyingControlScript = GetComponent <FlyingControl>(); }
void Awake() { m_flyingControlScript = GetComponentInParent <FlyingControl>(); m_healthScript = GetComponentInParent <EnemyHealth>(); m_maxForwardSpeed = m_flyingControlScript.MaxForwardSpeed; }
// Use this for initialization void Start() { rb = GetComponent <Rigidbody> (); fc = GetComponent <FlyingControl> (); }