@DaveVoyles make it static
-
-
-
@SniperED007 I have a GlobablSharing class, with all public static vars, but sometimes it returns as null. Think it's b/c of where I....
End of conversation
New conversation -
-
-
@DaveVoyles How do you mean globally,from components? I'm sure you can reference the containing game from them, this.Game.GraphicsDevice? -
@dmcncl I think I could do that, but not quite sure how. I'm currently using a GlobalShare class, but I don't think I'm initializing...
End of conversation
New conversation -
-
-
@DaveVoyles We use services ex: var gdm = (GraphicsDeviceManager)ScreenManager.Game.Services.GetService(typeof(GraphicsDeviceManager)); -
@NickPuleo That's what I think my best bet is too
End of conversation
New conversation -
-
-
@ManoDestra@DaveVoyles I usually extend Game, using that for my baseclass and add any stuff I need global in there. -
@dmcncl@ManoDestra So you're saying, make my public static GlobablShare class extend from game, then grab public static vars from there?
End of conversation
New conversation -
-
-
@ManoDestra I think that's what I need to do. I'll try that today and see how it works!Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@ManoDestra@dmcncl I'm fine with either one. I just get confused when adding services, despite all of my readingThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.