コード例 #1
0
    void AssetLoadCallBack(GameObject ro, ParamData data)
    {
        /*NGUITools.SetChildLayer(ro.transform, LayerMask.NameToLayer("3D"));
         *      ro.transform.parent = mpos;
         *      ro.transform.localScale = new Vector3(400f,400f,400f);
         *      ro.transform.localPosition = Vector3.zero;
         *      ro.transform.localRotation = Quaternion.Euler (10f, 180f, 0f);
         */
        if (hasDestroy)
        {
            Destroy(ro);
            PlayerAsseMgr.DeleteAsset((ENTITY_ID)data.iParam, false);
            return;
        }
        if (gameObject == null || !this.gameObject.activeSelf)
        {
            return;
        }
        if (babyObj != null)
        {
            Destroy(ro);
            PlayerAsseMgr.DeleteAsset((ENTITY_ID)data.iParam, false);
            return;
        }
        ro.transform.parent        = mpos;
        ro.transform.localPosition = Vector3.forward * -200f;
        ro.transform.localScale    = new Vector3(400f, 400f, 400f);
        ro.transform.localRotation = Quaternion.Euler(0f, 180f, 0f);
        //EffectLevel el =ro.AddComponent<EffectLevel>();
        //el.target =ro.transform.parent.parent.GetComponent<UISprite>();

        babyObj = ro;
    }
コード例 #2
0
    public override void Destroyobj()
    {
        UIManager.RemoveButtonEventHandler(catchBtn_.gameObject, EnumButtonEvent.OnClick);
        UIManager.RemoveButtonEventHandler(closeBtn_.gameObject, EnumButtonEvent.OnClick);
        BabyData baby = BabyData.GetData(pdata.monsterID_);

        if (baby != null)
        {
            PlayerAsseMgr.DeleteAsset((ENTITY_ID)baby._AssetsID, false);
        }
    }
コード例 #3
0
 void OnDestroy()
 {
     hasDestroy = true;
     for (int n = 0; n < _icons.Count; n++)
     {
         HeadIconLoader.Instance.Delete(_icons[n]);
     }
     PlayerAsseMgr.DeleteAsset((ENTITY_ID)EmployeeData.GetData(curEmployee.GetIprop(PropertyType.PT_TableId)).asset_id, false);
     if (equipObj != null)
     {
         //AssetInfoMgr.Instance.DecRefCount(GlobalInstanceFunction.Instance.GetAssetsName((int)UIASSETS_ID.UIASSETS_EmployeeEquipPanel, AssetLoader.EAssetType.ASSET_UI), true);
     }
 }
コード例 #4
0
    public override void Destroyobj()
    {
        //AssetInfoMgr.Instance.DecRefCount(GlobalInstanceFunction.Instance.GetAssetsName((int)UIASSETS_ID.UIASSETS__Arena, AssetLoader.EAssetType.ASSET_UI), true);

        COM_EndlessStair[] rivals = ArenaSystem.Instance.Rivals;
        for (int i = 0; i < rivals.Length; i++)
        {
            PlayerAsseMgr.DeleteAsset((ENTITY_ID)rivals[i].assetId_, false);
        }

        for (int n = 0; n < _icons.Count; n++)
        {
            HeadIconLoader.Instance.Delete(_icons[n]);
        }

        GameObject.Destroy(gameObject);
    }
コード例 #5
0
 void OnDestroy()
 {
     hasDestroy                     = true;
     isHid                          = true;
     changeBabyNameOk               = null;
     BabyFightingStandby            = null;
     SetBabyListLockUIOk            = null;
     GamePlayer.Instance.OnShowBaby = null;
     RefreshBabyListOk             -= RefreshBabyListUI;
     MainbabyUI.OnoffmakeOk        -= NewBabyMakeOff;
     itemsList.Clear();
     GamePlayer.Instance.OnShowBaby = null;
     PlayerAsseMgr.DeleteAsset((ENTITY_ID)asssid, true);
     for (int n = 0; n < _icons.Count; n++)
     {
         HeadIconLoader.Instance.Delete(_icons[n]);
     }
 }
コード例 #6
0
 void AssetLoadCallBack(GameObject ro, ParamData data)
 {
     if (gameObject == null || !this.gameObject.activeSelf)
     {
         Destroy(ro);
         PlayerAsseMgr.DeleteAsset((ENTITY_ID)data.iParam, false);
         return;
     }
     if (babyObj != null)
     {
         Destroy(ro);
         PlayerAsseMgr.DeleteAsset((ENTITY_ID)data.iParam, false);
         return;
     }
     ro.transform.parent        = mpos;
     ro.transform.localScale    = new Vector3(250f, 250f, 250f);
     ro.transform.localPosition = Vector3.forward * -40;
     ro.transform.localRotation = Quaternion.Euler(10f, 180f, 0f);
     babyObj = ro;
 }
コード例 #7
0
 void DestroyBaby(ENTITY_ID eId, bool unLoadAllLoadedObjects, GameObject obj)
 {
     PlayerAsseMgr.DeleteAsset(eId, unLoadAllLoadedObjects);
     Destroy(obj);
 }
コード例 #8
0
 public override void Destroyobj()
 {
     PlayerAsseMgr.DeleteAsset((ENTITY_ID)Inst.properties_[(int)PropertyType.PT_AssetId], true);
 }