fix bug
This commit is contained in:
@@ -136,7 +136,7 @@ public abstract class CECPlayer : CECObject
|
||||
public void SetModelHostPlayer()
|
||||
{
|
||||
parentModel = transform.GetChild(0);
|
||||
txtName = parentModel.GetComponentInChildren<TextMeshProUGUI>();
|
||||
txtName = GetComponentInChildren<TextMeshProUGUI>();
|
||||
|
||||
_pPlayerModel = NPCManager.Instance.GetModelPlayer();
|
||||
Scene scene = SceneManager.GetSceneByName("a61");
|
||||
@@ -609,10 +609,8 @@ public abstract class CECPlayer : CECObject
|
||||
{
|
||||
// “起” 动作(挥起)
|
||||
szAct = EC_Utility.BuildActionName(action, weapon_type, "Æð");
|
||||
BMLogger.LogError("HoangDev: szAct:"+ szAct);
|
||||
EventBus.PublishChannel(m_PlayerInfo.cid, new PlayActionEvent(szAct));
|
||||
szAct = EC_Utility.BuildActionName(action, weapon_type, "Âä");
|
||||
BMLogger.LogError("HoangDev: szAct queueActionEvent:" + szAct);
|
||||
queueActionEvent.SetData(szAct, SetApplyDamage, true, attackEvent);
|
||||
EventBus.PublishChannelClass(m_PlayerInfo.cid, queueActionEvent);
|
||||
//PlayNonSkillActionWithName(iAction, szAct, true, 200, true, ref pActFlag, COMACT_FLAG_MODE_ONCE_MULTIIGNOREGFX);gagága
|
||||
|
||||
@@ -48,7 +48,8 @@ namespace PerfectWorld.Scripts.Player
|
||||
SetPos(Info.pos);
|
||||
|
||||
SetModelHostPlayer();
|
||||
string roleName = Encoding.Unicode.GetString(UnityGameSession.Instance.GetRoleInfo().name.ByteArray);
|
||||
string roleName = Encoding.Unicode.GetString(roleInfo.name.ByteArray);
|
||||
BMLogger.LogError("HoangDev: roleName:" + roleName);
|
||||
if (txtName != null) txtName.text = roleName;
|
||||
|
||||
m_cdr.fStepHeight = m_MoveConst.fStepHei;
|
||||
|
||||
@@ -103,7 +103,7 @@ RectTransform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3356314488807061436}
|
||||
m_LocalRotation: {x: 8.102368e-16, y: 1, z: 0.000000046460137, w: -0.000000017439397}
|
||||
m_LocalRotation: {x: 0.15124027, y: 0.8467184, z: 0.39120576, w: -0.3273416}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
@@ -283,7 +283,7 @@ RectTransform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6417286913550183034}
|
||||
m_LocalRotation: {x: -0.015501263, y: 0.89470863, z: -0.031145941, w: -0.4452933}
|
||||
m_LocalRotation: {x: 0.15185507, y: -0.8631672, z: -0.37112242, w: 0.30683973}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
@@ -323,7 +323,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: Hoang
|
||||
m_text: ?????
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0d1bcf9fb61ce98fdc9a2833b5d653913d95833de182d6c8538c08d1e3023127
|
||||
size 532501420
|
||||
oid sha256:6dac5f0e4751a89a031bf1a86b9494891fd913ef5efb1605a27f95f6e81652e3
|
||||
size 533673959
|
||||
|
||||
@@ -876,12 +876,13 @@ public class CECHostPlayer : CECPlayer
|
||||
// roleName = Encoding.UTF8.GetString(role.name.ByteArray, 0, role.name.Length);
|
||||
//}
|
||||
SetPlayerInfor(new INFO(role.cid, role.crc_e, role.crc_c));
|
||||
SetModelHostPlayer();
|
||||
|
||||
Vector3 pos = new Vector3(role.pos.x, role.pos.y, role.pos.z);
|
||||
string roleName = Encoding.Unicode.GetString(UnityGameSession.Instance.GetRoleInfo().name.ByteArray);
|
||||
if (txtName != null) txtName.text = roleName;
|
||||
EventBus.Publish(new InfoHostPlayer(roleName));
|
||||
transform.position = pos;
|
||||
SetModelHostPlayer();
|
||||
m_dwResFlags = (uint)PlayerResourcesReadyFlag.RESFG_ALL;
|
||||
joystick = FindAnyObjectByType<Joystick>();
|
||||
EventBus.Subscribe<JoystickRealeaseEvent>(JoystickRelease);
|
||||
|
||||
+403
-10
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user