Ejemplo n.º 1
0
    private void Awake()
    {
        //DontDestroyOnLoad(gameObject);
        if (instance != null)
        {
            Destroy(gameObject);
            return;
        }
        instance = this;

        avaPool = AvaPool.instance;
    }
Ejemplo n.º 2
0
    private void Awake()
    {
        if (instance != null)
        {
            Destroy(gameObject);
            return;
        }
        instance = this;

        DontDestroyOnLoad(this);

        avaPool    = AvaPool.instance;
        eqpAvaPool = EqpAvaPool.instance;
        foreach (Enemy enemy in enemies.GetComponentsInChildren <Enemy>())
        {
            enemy.OnEnemyDead += OnChangeRewardRune;
            enemy.OnEnemyDead += OnChangeRewardEqp;
        }
    }
Ejemplo n.º 3
0
    void Awake()
    {
        if (instance != null)
        {
            Destroy(gameObject);
            return;
        }
        instance = this;

        totalPool = TotalPool.instance;

        foreach (Rune rune in totalPool.totalPool)
        {
            if (rune.collection == "Base" || rune.collection == "Unlock")
            {
                avaPool.Add(rune);
            }
        }
        //Debug.Log(avapool.Runes[0].name);
        //Debug.Log(avapool.Runes.Count);
    }