Beispiel #1
0
 protected override void OnClose()
 {
     mCurPetID = 0;
     mFoods.Clear();
     mItems.Clear();
     mTemps.Clear();
     ERender.DelRender(mRender);
     mRender = null;
 }
Beispiel #2
0
 protected override void OnClose()
 {
     mCards.Clear();
     mMoveList.Clear();
     mRelicsCharges.Clear();
     mNowPropertys.Clear();
     mNexPropertys.Clear();
     mCenterIndex = 0;
     mOpenFunc    = 1;
     ERender.DelRender(mRender);
     mRender = null;
 }
Beispiel #3
0
    private void ShowModel()
    {
        DActor db = ReadCfgActor.GetDataById(mSelectMountID);

        if (db == null)
        {
            mRender = ERender.DelRender(mRender);
            return;
        }
        if (mRender == null)
        {
            mRender = ERender.AddRender(modelTexture);
        }
        mRender.DelAllModels();
        mAvatar = CharacterManager.Instance.AddAvatar(db.Model);
        mAvatar.PlayAnim("idle", null);
        GameObject model = mRender.AddModel(mAvatar.GetRootObj());

        model.transform.localPosition    = db.StagePos;
        model.transform.localEulerAngles = new Vector3(0, 120, 0);
        model.transform.localScale       = new Vector3(db.StageScale, db.StageScale, db.StageScale);
    }
Beispiel #4
0
    private void ShowModel()
    {
        DActor db = ReadCfgActor.GetDataById(mSelectMountID);

        if (db == null)
        {
            mRender = ERender.DelRender(mRender);
            return;
        }
        if (mRender == null)
        {
            mRender = ERender.AddRender(modelTexture);
        }
        mRender.DelAllModels();
        mAvatar = GTWorld.Instance.AddAvatar(db.Model);
        mAvatar.PlayAnim("idle", null);
        GameObject model = mRender.AddModel(mAvatar.GetRootObj());
        DStage     ds    = ReadCfgStageMount.GetDataById(mSelectMountID);

        model.transform.localPosition    = new Vector3(ds.X, ds.Y, ds.Z);
        model.transform.localEulerAngles = new Vector3(0, 120, 0);
        model.transform.localScale       = Vector3.one * ds.Scale * 1.2f;
    }
Beispiel #5
0
 protected override void OnClose()
 {
     ERender.DelRender(mRender);
     mRender = null;
 }
Beispiel #6
0
 protected override void OnClose()
 {
     SetSelectMountID(0);
     mAvatar = null;
     mRender = ERender.DelRender(mRender);
 }