void SetStickSlot(eStickType eType, SHUIWidget_Stick pStick, SHUIWidget_ItemSlot pSlot)
    {
        if ((null == pStick) || (null == pSlot))
        {
            return;
        }

        SHGameObject.SetParent(pStick.GetGameObject(), pSlot.GetGameObject());
        pStick.Initialize(eType);
        pStick.SetLocalPosition(Vector3.zero);
        pStick.SetLocalScale(Vector3.one);
        pStick.SetActive(true);
    }
示例#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);
    }