/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. mSpriteBatch = new SpriteBatch(GraphicsDevice); mMusicManager.Play(0); mScreenManager = new ScreenManager(Content, mGraphics, mCamera, mInputManager, mMusicManager); MouseInputWrapper.Init(mScreenManager); MouseInputWrapper.LoadInputManager(mInputManager); }
// Use this for initialization void Start() { _MouseInputWrapper = CameraTarget.gameObject.GetComponent <MouseInputWrapper>(); }
// Use this for initialization void Start() { _rb = GetComponent <Rigidbody>(); _MouseInputWrapper = GetComponent <MouseInputWrapper>(); }