void Start() { //Initialize private variables mu_rigid = GetComponent <Rigidbody2D>(); mu_boostSlider = FindObjectOfType <MU_BoostSlider>().GetComponent <Slider>(); mu_goalSlider = FindObjectOfType <MU_GoalSlider>().GetComponent <Slider>(); mu_camera = FindObjectOfType <MU_Camera>(); mu_goalTransform = FindObjectOfType <MU_Pickup>().transform; mu_anim = GetComponent <Animator>(); mu_facingRight = false; }
void Start() { //Initialize private variables mu_rigid = GetComponent<Rigidbody2D>(); mu_boostSlider = FindObjectOfType<MU_BoostSlider>().GetComponent<Slider>(); mu_goalSlider = FindObjectOfType<MU_GoalSlider>().GetComponent<Slider>(); mu_camera = FindObjectOfType<MU_Camera>(); mu_goalTransform = FindObjectOfType<MU_Pickup>().transform; mu_anim = GetComponent<Animator>(); mu_facingRight = false; }