} // The object pool the laser belongs to. private void Awake() { m_RigidBody = GetComponent <Rigidbody>(); //m_FlyerMovementController = GetComponentInParent<FlyerMovementController>(); m_FlyerMovementController = FindObjectOfType <FlyerMovementController>(); m_Speed = m_FlyerMovementController.Speed * SpeedMultiplier; }
private void Awake() { m_RigidBody = GetComponent <Rigidbody>(); m_FlyerHealthController = FindObjectOfType <FlyerHealthController>(); m_FlyerMovementController = FindObjectOfType <FlyerMovementController>(); m_Flyer = m_FlyerHealthController.gameObject; m_Dolphin = FindObjectOfType <DolphinScript>(); m_Cam = Camera.main.transform; }