onewheelstudio / adventures-in-c-sharp Goto Github PK
View Code? Open in Web Editor NEWTutorial Files from OWS C# Videos
License: MIT License
Tutorial Files from OWS C# Videos
License: MIT License
Hi,
I really appreciate the work you put into the samples. I would like to implement key rebinding based on your sample but wanted to check if it's okay for you to use it in my game.
Would you mind to add a license to the project - MIT for example?
Thanks again for this great repository ๐
Hi! I watched the generics video and had a question about how it works under the hood.
If you take the Pool class from the tutorial and then in another class do something like
private GameManager gameManager;
private PlayerController playerController;
private void Example()
{
Pool<GameManager>.ReturnObject(gameManager);
Pool<PlayerController>.ReturnObject(playerController);
PlayerController secondPlayerController = Pool<PlayerController>.GetObject();
}
And since we are dealing with Queue, we will get a GameManager instead of a PlayerController.
I understand the principle of using Generic for non-static classes, it speeds up the work with the code.
I understand the use of static classes with predefined type.
But I don't understand the use of static generic pool classes, because if the class is static - it exists in one instance, which means that when you add different (because generic) types - chaos will start
Explain please, thanks!
I want to destroy all items in the object pool so that they are not in the scene anymore.
I have written DestroyPool for this purpose but I can't seem to find a way to access this function from outside this function.
I have tried to do it by writing the RemoveAllSpawnedObjects() script but that seems to be wrong as the stack will also appear to be empty.
I am trying to load the indicated files of a WebGL build from local path. Neither with a new project, nor with the example works.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.