You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line MyraEnvironment.Game = this; should be called before accessing any Myra functionaly.
Note. Myra assumes that there's only one Game during the entire game cycle. Therefore Myra stores it as singleton and accesses all its services(such as GraphicsDevice).
In the line _font = DefaultAssets.Font; we initialize our font reference by the font from Myra's default assets.