예제 #1
0
    protected virtual void Awake()
    {
        redApplePool    = GenericPool.Create(gameObject, spawns.Length * 2, redApple);
        goldenApplePool = GenericPool.Create(gameObject, spawns.Length, goldenApple);

        EventManager <GameStartEvent> .AddListener(this);

        EventManager <GameEndEvent> .AddListener(this);
    }