void Start() { _hingeJoint.connectedBody = GameObject.Find("hand").GetComponent <Rigidbody2D>(); BirthdayСake = GameObject.Find("birthdayСake").GetComponent <BirthdayСake>(); _camera = Camera.main; _cameraMovement = _camera.GetComponent <CameraMovement>(); _hingeJoint.enabled = false; }
void Start() { _creamSpot.SetActive(false); BirthdayСake = GameObject.Find("birthdayСake").GetComponent <BirthdayСake>(); }