Exemplo n.º 1
0
    public void Fresh(FreshType type)
    {
        switch (type)
        {
        case FreshType.Dur:
            durable.text    = item.durable.ToString();
            maxDurable.text = "/" + item.maxDurable.ToString();
            break;

        case FreshType.Att:

            break;
        }
    }
Exemplo n.º 2
0
    public void Fresh(FreshType type)
    {
        switch (type)
        {
        case FreshType.Hp:
            hp.text = hero.hp.ToString();
            break;

        case FreshType.Att:

            break;

        case FreshType.Die:
            Pooler.PutPoolObj(PoolType.HeroPool.ToString(), gameObject);
            break;
        }
    }