Exemplo n.º 1
0
    static private void OnPetAvatarChange()
    {
        A3_PetModel petmodel = A3_PetModel.getInstance();

        if (!PlayerModel.getInstance().havePet)
        {
            return;
        }
        _inst.ChangePetAvatar((int)petmodel.Tpid, 0);
        debug.Log(petmodel.Tpid + "::::tpid:::::::::::::::::");
    }
Exemplo n.º 2
0
    public void otherPlayPetAvatarChange(uint iid, int petid, int stage)
    {
        ProfessionRole professionRole = null;

        this.m_mapOtherPlayer.TryGetValue(iid, out professionRole);
        bool flag = professionRole == null;

        if (!flag)
        {
            professionRole.ChangePetAvatar(petid, 0);
        }
    }
Exemplo n.º 3
0
    public void otherPlayPetAvatarChange(uint iid, int petid, int stage)
    {
        ProfessionRole role = null;

        m_mapOtherPlayer.TryGetValue(iid, out role);
        if (role == null)
        {
            return;
        }
        role.ChangePetAvatar(petid, 0);

        if (SceneCamera.m_nModelDetail_Level != 1)
        {
            if (role.m_myPetBird != null)
            {
                foreach (Transform tran in role.m_myPetBird.GetComponentsInChildren <Transform>())
                {
                    //debug.Log("改变了layer " + tran.name);
                    tran.gameObject.layer = EnumLayer.LM_DEFAULT;// 更改物体的Layer层
                }
            }
        }
    }