// Use this for initialization void Start() { tbu = obj_tbu.GetComponent <TouchButtonRight> (); tbd = obj_tbd.GetComponent <TouchButton> (); cMovement = obj_camera.GetComponent <CameraMovment> (); ridigbody2d = gameObject.GetComponent <Rigidbody2D> (); }
// Use this for initialization void Start() { touchButtonRight = objtbr.GetComponent <TouchButtonRight> (); touchButtonRight2 = objtbr2.GetComponent <TouchButtonRight> (); touchButtonRight3 = objtbr3.GetComponent <TouchButtonRight> (); touchButtonRight4 = objtbr4.GetComponent <TouchButtonRight> (); touchButtonRight5 = objtbr5.GetComponent <TouchButtonRight> (); }
// Use this for initialization void Start() { tbr = obj_button.GetComponent <TouchButtonRight> (); }