Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     _MouseInputWrapper = CameraTarget.gameObject.GetComponent <MouseInputWrapper>();
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     _rb = GetComponent <Rigidbody>();
     _MouseInputWrapper = GetComponent <MouseInputWrapper>();
 }