Jump to content
  • Advertisement

dirmp

Member
  • Content Count

    6
  • Joined

  • Last visited

Everything posted by dirmp

  1. dirmp

    Programming commands

    Ok, thank you for the answer !! Was of great help ... Then share the final result! Greetings!
  2. Good night, all right? I am new to Unity, despite having already completed some basic projects, and I am thinking about the best way to organize the code I use to commands, for example, when you press the key "i", open inventory, among others... The way I'm doing it: I put almost all codes in a script within the CharacterController, but not sure if I'm doing the right way... For example, were various functions within the Update ():   if(Input.GetKeyDown(KeyCode.I)) { //Open inventory } if(Input.GetKeyDown(KeyCode.Escape)) { //Close the application }   And there are many commands as well, I've thought about putting this script into an empty gameObject so I can import into any scene. And one more question: So, each frame is scanned all if/else to find some valid to run, but does not use a lot of memory? Or is there another more correct way to use scripts for each keyboard command?   Thank you!!
  3. dirmp

    Programming commands

      Ok, I got it, thanks for the tip .. I will find out more about key mapper! But on my other questions, I keep using the same algorithm I'm using?
  4.       Thanks so much to you both for the tips, I know almost nothing about JSON, so I'll try to know better and then say it solved my problem... I believe that is the best way. The JSON is supported by Unity or any additional plugin is required? Thanks!     https://www.nuget.org/packages/Unity.Newtonsoft.Json/   There is a port of JSON.Net for Unity that you can use, there are also a bunch of json libraries in the asset store.     I understood, I will try to use this port, thank you!!
  5.       Thanks so much to you both for the tips, I know almost nothing about JSON, so I'll try to know better and then say it solved my problem... I believe that is the best way. The JSON is supported by Unity or any additional plugin is required? Thanks!
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!