Giter Club home page Giter Club logo

adventures-in-c-sharp's People

Contributors

onewheelstudio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

adventures-in-c-sharp's Issues

Missing 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 ๐Ÿ™‚

How "public static class Pool<T> where T : MonoBehaviour" works?

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!

How to destroy all items in objectPool?

image

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.

image

Load local build problem

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.