fix:隐藏体感服调用,调整刀的位置
This commit is contained in:
@@ -932,7 +932,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &14603910604296089
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1046,7 +1046,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &1520060182627552417
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1541,7 +1541,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &5107641212545022542
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -5677,7 +5677,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!4 &486593705
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -9817,7 +9817,7 @@ MonoBehaviour:
|
||||
IncludeChildColliders: 0
|
||||
RuntimeFollower: {fileID: 0}
|
||||
colliderMaxDistance: 100
|
||||
lastTimeMaxDistanceCalced: 638947656662299962
|
||||
lastTimeMaxDistanceCalced: 638947697199633200
|
||||
--- !u!82 &675942809
|
||||
AudioSource:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -25,6 +25,23 @@ public class MeleeWeapon : Launcher
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (!isOwned)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// 左手
|
||||
if (hand == HandType.Left)
|
||||
{
|
||||
transform.position = GameLocal.Ins.self.LeftHand.position;
|
||||
transform.rotation = GameLocal.Ins.self.LeftHand.rotation;
|
||||
}
|
||||
// 右手
|
||||
else if (hand == HandType.Right)
|
||||
{
|
||||
transform.position = GameLocal.Ins.self.RightHand.position;
|
||||
transform.rotation = GameLocal.Ins.self.RightHand.rotation;
|
||||
}
|
||||
for (int i = 0; i < bladePoints.Length; i++)
|
||||
{
|
||||
Vector3 curPos = bladePoints[i].position;
|
||||
|
||||
@@ -127,7 +127,7 @@ public class Player : NetworkRoomPlayer,IDamagable
|
||||
Vector3 directionFormHit=(transform.position-_sender.position).normalized;
|
||||
float angle = Vector3.Angle(forward, directionFormHit);
|
||||
int index = Random.Range(0, 4);
|
||||
TrueGearEffectManager.Ins.OnHit(angle > 90,index,false);
|
||||
//TrueGearEffectManager.Ins.OnHit(angle > 90,index,false);
|
||||
}
|
||||
#endif
|
||||
if (currentHp <= 0 && IsAlive)
|
||||
|
||||
Reference in New Issue
Block a user