New answers tagged

1

Reading your log output, it seems your application is having trouble loading your assets from the device storage. A few suggestions I can make: Make sure your application has been permitted to access storage in your android device. You can try this, and if your app isn't listed there, try removing it and re-adding it to your device. Android should ask you ...


0

If you wanted to stay in the Google ecosystem, Google Game Servers was recently announced. With that said, I've used socket.io and Heroku (with a Node.js app serving Websockets) for the kind of rapid prototyping it sounds like you're looking for. I've also heard of a lot of indies going with Photon for the realtime components of their games. None of these ...


1

General Architecture If you had input and rendering share a thread, that would allow you to mix input and output(rendering) code, making it easier to make messy code. What I suggest you to do is to have an Input Model. That is some object that contains a representation of the input of the user. Then you update it from your event handlers (listeners? ...


0

It looks like you never assign the game member-variable in your TitleScreen class, so it is null when the click handler is invoked. Try setting the game variable in the constructor of TitleScreen, you are already passing in a Game instance called aGame, you problably want to assign that to game: public GameScreen(Game aGame){ batch = new SpriteBatch(); ...


1

You can use this to wait until something happens: https://docs.unity3d.com/ScriptReference/WaitUntil.html Or you can set up a load scene, where you load up and store stuff, than show it in the next scene when is is ready, or when the player presses a button: https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.LoadSceneAsync.html


2

I found out the problem! So when you type out url for Application.OpenURL there are quotation marks around the URL and so I typed in the url string values (url and diffURL) the same way in the inspector for the "Website1()" and "website2()" examples, with quotation marks and all ("http://www.google.com/"). For some reason it does not work that way. I took ...


0

Good for opening website to the browser string baseUri = "https://myawesomewebsite.com" Application.OpenURL(baseUri + "/faqs.html"); Application.OpenURL(baseUri + "/contactus.html"); Good for opening deployed app to the Play Store string market = "market://details?id=" Application.OpenURL(market + Application.identifier);


Top 50 recent answers are included