Esempio n. 1
0
    void ReturnStickObject(SHUIWidget_Monster pMonster)
    {
        if (null == pMonster)
        {
            return;
        }

        Single.ObjectPool.Return(pMonster.GetGameObject());
    }
Esempio n. 2
0
    void SetMonsterSlot(eMonsterType eType, SHUIWidget_Monster pMonster, SHUIWidget_ItemSlot pSlot)
    {
        if ((null == pMonster) || (null == pSlot))
        {
            return;
        }

        SHGameObject.SetParent(pMonster.GetGameObject(), pSlot.GetGameObject());
        pMonster.Initialize(eType, 0.5f, 0.0f, 0.0f);
        pMonster.SetLocalPosition(Vector3.zero);
        pMonster.SetLocalScale(Vector3.one);
        pMonster.StopMoveTween();
        pMonster.SetActive(true);
    }