fix
This commit is contained in:
parent
cda440399b
commit
814d455eab
|
@ -52,7 +52,7 @@ MonoBehaviour:
|
||||||
m_Calls:
|
m_Calls:
|
||||||
- m_Target: {fileID: 369596802107988542}
|
- m_Target: {fileID: 369596802107988542}
|
||||||
m_TargetAssemblyTypeName: HealthComponent, Assembly-CSharp
|
m_TargetAssemblyTypeName: HealthComponent, Assembly-CSharp
|
||||||
m_MethodName: SimpleKill
|
m_MethodName: EnemyKill
|
||||||
m_Mode: 1
|
m_Mode: 1
|
||||||
m_Arguments:
|
m_Arguments:
|
||||||
m_ObjectArgument: {fileID: 0}
|
m_ObjectArgument: {fileID: 0}
|
||||||
|
|
|
@ -34,16 +34,15 @@ public class HealthComponent : MonoBehaviour
|
||||||
OnHealthZero?.Invoke();
|
OnHealthZero?.Invoke();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void EnemyKill()
|
||||||
|
{
|
||||||
|
Destroy(gameObject);
|
||||||
|
}
|
||||||
|
|
||||||
public void SimpleKill()
|
public void SimpleKill()
|
||||||
{
|
{
|
||||||
CameraShake.instance.ShakeCamera(0.5f, 0.2f);
|
CameraShake.instance.ShakeCamera(0.5f, 0.2f);
|
||||||
|
|
||||||
var cam = CinemachineCore.Instance.GetActiveBrain(0).ActiveVirtualCamera.Priority -= 1;
|
|
||||||
|
|
||||||
CinemachineCore.Instance.GetActiveBrain(0).ActiveVirtualCamera.VirtualCameraGameObject.GetComponent<CinemachineCameraOffset>().m_Offset.z = TowerCam.instance.originalOffset;
|
|
||||||
|
|
||||||
HideWall.instance.target = null;
|
|
||||||
|
|
||||||
Destroy(gameObject);
|
Destroy(gameObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue