Singletons & Managers - Unity Tutorial by Roundbeargames
gamedev·@roundbeargames·
0.000 HBDSingletons & Managers - Unity Tutorial by Roundbeargames
[](https://youtube.com/roundbeargames) ---- https://youtu.be/92NQVeFiDeY Singletons Explained Unity Tutorial by Roundbeargames Usually the use of singletons is not recommended, but for a simple indie game, it might be ok as long as you don't overdo it. Personally, I like to use singletons to hold a list of a group of objects: - Character Manager for example, has the list of all the characters in the scene - Virtual Input Manager has all the public variables for possible presses like up, down, left, right, etc). From any class, you can access the Character Manager by using "CharacterManager.Instance" or the Virtual Input Manager through "VirtualInputManager.Instance". You don't have to worry about instantiating a manager class. It's done automatically the first time you call the public method. Singletons: https://en.wikipedia.org/wiki/Singleton_pattern Static variables: https://en.wikipedia.org/wiki/Static_variable Unity3D Managers vs Controllers: https://youtu.be/T39tyyQjFSQ C# Generics: https://youtu.be/5ds30gSotPc Files are available here: https://drive.google.com/drive/folders/17Lfpa5r-3zeR1jaT0eJ4nqIR3pkU9ABE?usp=sharing Download this project: https://github.com/RoundBearChoi/2.5D_Platformer_Unity Tutorial playlist: https://www.youtube.com/playlist?list=PLWYGofN_jX5BupV2xLjU1HUvujl_yDIN6 Any questions/comments? Join us on discord: https://discord.gg/RbxjBu3 Social twitter: https://twitter.com/roundbeargames facebook: https://facebook.com/roundbeargames17 steem: https://steemit.com/@roundbeargames reddit: https://reddit.com/user/roundbeargames linkedin: https://linkedin.com/in/roundbeargames-choi-15041a9a Patreon: https://patreon.com/roundbeargames ---- <center> [](https://steemit.com/@roundbeargames) [](https://www.facebook.com/RoundBearGames17) [](https://www.youtube.com/channel/UCAoJgVzDHnFDOQwC42raByg) [](https://twitter.com/RoundBearGames) [](https://discord.gg/RbxjBu3) [](https://www.steemit.com/@roundbeargames) [](https://whaleshares.io/@roundbeargames) [](https://www.reddit.com/user/roundbeargames) [](https://www.linkedin.com/in/roundbeargames-choi-15041a9a/) <br> #### Posted using [eSteem Surfer](https://esteem.app)  </center>
👍 silasvogt, bergek123, mineopoly, nanocheeze, xaunya, xtdevelopment, cybershrapnel, juliansyah, bambangsuraji, tookta, eliel, anacristinasilva, gerber, daan, exyle, accelerator, cadawg, bozz, appreciator, mentalhealthguru, fsm-liquid, netaterra, laissez-faire, kryptogames, themarkymark, techslut, dhanagc, andyblack, didic, upboater, aicurator, buildawhale, imisstheoldkanye, upmyvote, shadowspub, uplus, swiftbot, davidke20, elizacheng, kimzwarch, namchau, yumisee, casberp, zephalexia, ryenneleow, archisteem, a-secondchance, fintian, archisteem-cn, robertoueti, mynotsofitlife, vaelriey, qurator, quochuy, qberry, angelinafx, shookriya, mariajruizb, mandalaflower, justinparke, alexanderrigov, qustodian, gribouille, qtip, occpresents, qberryfarms, suonghuynh, blewitt, dikkie, helpmate, gregory-f, oleg326756, yadamaniart, onethousandwords, garudi, itsben, smartvote, minimining, kheys, bestbroplayer, tubecollector, sbi3, fr3eze, glory7, yasu24, epicdice, ncm.wicked, ncm.defying, ncm.gravity, ncm.hamilton, ncm.whos, ncm.next, ncm.fire, ncm.life, ncm.death, ncm.water, ncm.earth, demo, esteem.app, dronegraphica, adyorka, good-karma, feruz, mysteem, esteemapp, codingdefined, axeminni, primeradue, onealfa.ccc, nateaguila, faustofraser, theleapingkoala, ntowl, steemingnaija, joanstewart, mapxv, maxuvv, steeimran, tfame3865, schubes, otemzi, wilhb81, erarnitox, mini-zephalexia, avhyaceulip, jini-zzang, anna89, stylegold, rycharde, map10k, maxuva, maxuvb, maxuvc, maxuvd, maxuve, gamersclassified, bboyady, coquiunlimited, jayna, nortjenn, loveprevails, ylania, memento.mori, drveni, whack.science, malay11, cooknbake, cpl-17, sbi-booster, thedailysneak, josephsavage, leguidecrypto, smawkward, pandanwaffle, luminaryhmo, drotto, blockurator, sasaadrian, melooo182, nolasco, prudent-rod1, indayclara, czechglobalhosts, khalil319, malikkeren, taroyoma, bluengel, video24x, roberto0, smjn, yuris33, danbain, kharma.scribbles, fulltimebot, cpufronz, fulltimebot52, fulltimebot10, fulltimebot14, fulltimebot36, fulltimebot41, fulltimebot19, kkndworld,