示例#1
0
 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;
 }
示例#2
0
 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;
 }