void Update() { if (m_proAvatar != null) { m_proAvatar.FrameMove(); } }
void Update() { if (!_NewOne) { return; } double ct = ((double)closetime - (double)muNetCleint.instance.CurServerTimeStamp); closeTime.text = "<color=#ff0000>(" + (int)ct + ")</color>"; // if (close_time != closetime-3) ;//ct -= 60; if (closefb_way == true) { InterfaceMgr.getInstance().close(InterfaceMgr.A3_INSIDEUI_FB); } if (ct < close_time) { _NewOne = false; if (closefb_way == false) { a3_insideui_fb.instance.light_biu.gameObject.SetActive(true); a3_insideui_fb.instance.exittime.gameObject.SetActive(true); a3_insideui_fb.instance.close_time = (double)closetime; // a3_insideui_fb.instance.close_time = 80 + (double)muNetCleint.instance.CurServerTimeStamp; } InterfaceMgr.getInstance().close(InterfaceMgr.A3_FB_FINISH); } if (m_proAvatar != null) { m_proAvatar.FrameMove(); } }
void Update() { if (time < 0.8f) { time = time + Time.deltaTime; } if (time > 0.8f && isShowCompelet) { isShowCompelet = false; if (camera) { camera.cullingMask = (1 << EnumLayer.LM_FX) | (1 << EnumLayer.LM_ROLE_INVISIBLE); } } //if ( m_proAvatar != null && time > 0.25f && m_proAvatar.rideGo != null && m_proAvatar.rideGo.transform.parent.name != m_proAvatar.m_curModel.name ) //{ // //m_proAvatar. rideGo.transform.SetParent( m_proAvatar.m_curModel ); // //} if (m_proAvatar != null) { m_proAvatar.FrameMove(); } //if ( _quanBg ) { _quanBg.transform.Rotate( Vector3.forward * 5 ); } }
void Update() { if (m_proAvatar1 != null) { m_proAvatar1.FrameMove(); } if (m_proAvatar2 != null) { m_proAvatar2.FrameMove(); } if (myselfload && matchload) { playskill_start(); } }
void Update() { if (async != null && async.isDone) { async = null; standPoint = GameObject.Find("standpoint"); //!--加载完成后,刷新一次,显示选中的角色 Variant chas = muNetCleint.instance.charsInfoInst.getChas(); if (chas.Count > 0) { onChooseCha(chooseBtns[0].gameObject); } } if (m_curProAvatar != null) { m_curProAvatar.FrameMove(); } }
public override void FrameMove(float delta_time) { base.FrameMove(delta_time); m_proAvatar.FrameMove(); }
public void createAvatar() { if (m_SelfObj == null) { GameObject obj_prefab; A3_PROFESSION eprofession = A3_PROFESSION.None; string m_strAvatarPath = ""; string equipEff_path = ""; if (carr == 2) { eprofession = A3_PROFESSION.Warrior; obj_prefab = GAMEAPI.ABFight_LoadPrefab("model_avatar_ui_warrior_avatar"); m_SelfObj = GameObject.Instantiate(obj_prefab, new Vector3(-77.38f, -0.602f, 14.934f), new Quaternion(0, 90, 0, 0)) as GameObject; m_strAvatarPath = "profession_warrior_"; equipEff_path = "Fx_armourFX_warrior_"; } else if (carr == 3) { eprofession = A3_PROFESSION.Mage; obj_prefab = GAMEAPI.ABFight_LoadPrefab("model_avatar_ui_mage_avatar"); m_SelfObj = GameObject.Instantiate(obj_prefab, new Vector3(-77.38f, -0.602f, 14.934f), new Quaternion(0, 167, 0, 0)) as GameObject; m_strAvatarPath = "profession_mage_"; equipEff_path = "Fx_armourFX_mage_"; } else if (carr == 5) { eprofession = A3_PROFESSION.Assassin; obj_prefab = GAMEAPI.ABFight_LoadPrefab("model_avatar_ui_assa_avatar"); m_SelfObj = GameObject.Instantiate(obj_prefab, new Vector3(-77.38f, -0.602f, 14.934f), new Quaternion(0, 90, 0, 0)) as GameObject; m_strAvatarPath = "profession_assa_"; equipEff_path = "Fx_armourFX_assa_"; } else { return; } foreach (Transform tran in m_SelfObj.GetComponentsInChildren <Transform>()) { tran.gameObject.layer = EnumLayer.LM_ROLE_INVISIBLE;// 更改物体的Layer层 } Transform cur_model = m_SelfObj.transform.FindChild("model"); //手上的小火球 if (carr == 3) { Transform cur_r_finger1 = cur_model.FindChild("R_Finger1"); obj_prefab = GAMEAPI.ABFight_LoadPrefab("model_avatar_ui_mage_r_finger_fire"); GameObject light_fire = GameObject.Instantiate(obj_prefab) as GameObject; light_fire.transform.SetParent(cur_r_finger1, false); } int bodyid = 0; int bodyFxid = 0; uint colorid = 0; if (Equips.ContainsKey(3)) { bodyid = (int)Equips[3].tpid; bodyFxid = Equips[3].equipdata.stage; colorid = Equips[3].equipdata.color; } if (Equips.ContainsKey(11)) { bodyid = ( int )Equips[11].tpid; bodyFxid = Equips[11].equipdata.stage; colorid = Equips[11].equipdata.color; } int m_Weapon_LID = 0; int m_Weapon_LFXID = 0; int m_Weapon_RID = 0; int m_Weapon_RFXID = 0; if (Equips.ContainsKey(6)) { switch (carr) { case 2: m_Weapon_RID = (int)Equips[6].tpid; m_Weapon_RFXID = Equips[6].equipdata.stage; break; case 3: m_Weapon_LID = (int)Equips[6].tpid; m_Weapon_LFXID = Equips[6].equipdata.stage; break; case 5: m_Weapon_LID = (int)Equips[6].tpid; m_Weapon_LFXID = Equips[6].equipdata.stage; m_Weapon_RID = (int)Equips[6].tpid; m_Weapon_RFXID = Equips[6].equipdata.stage; break; } } if (Equips.ContainsKey(12)) { switch (carr) { case 2: m_Weapon_RID = ( int )Equips[12].tpid; m_Weapon_RFXID = Equips[12].equipdata.stage; break; case 3: m_Weapon_LID = ( int )Equips[12].tpid; m_Weapon_LFXID = Equips[12].equipdata.stage; break; case 5: m_Weapon_LID = ( int )Equips[12].tpid; m_Weapon_LFXID = Equips[12].equipdata.stage; m_Weapon_RID = ( int )Equips[12].tpid; m_Weapon_RFXID = Equips[12].equipdata.stage; break; } } m_proAvatar = new ProfessionAvatar(); m_proAvatar.Init_PA(eprofession, m_strAvatarPath, "h_", EnumLayer.LM_ROLE_INVISIBLE, EnumMaterial.EMT_EQUIP_H, cur_model, equipEff_path); if (active_eqp.Count >= 10) { m_proAvatar.set_equip_eff(bodyid, true); } m_proAvatar.set_equip_eff(a3_EquipModel.getInstance().GetEff_lvl(active_eqp.Count)); if (fashionsshows[1] != 0) { m_proAvatar.set_body(fashionsshows[1], 0); } else { m_proAvatar.set_body(bodyid, bodyFxid); } if (fashionsshows[0] != 0) { m_proAvatar.set_weaponl(fashionsshows[0], 0); m_proAvatar.set_weaponr(fashionsshows[0], 0); } else { m_proAvatar.set_weaponl(m_Weapon_LID, m_Weapon_LFXID); m_proAvatar.set_weaponr(m_Weapon_RID, m_Weapon_RFXID); } m_proAvatar.set_wing(show_wing, show_wing); m_proAvatar.set_equip_color(colorid); if (m_proAvatar != null) { m_proAvatar.FrameMove(); } } }