添加地形和场景
This commit is contained in:
@@ -120,16 +120,16 @@ public class Player : NetworkRoomPlayer,IDamagable
|
||||
float curDamage = damage;
|
||||
SetBlood(-curDamage);
|
||||
|
||||
#if !UNITY_EDITOR && UNITY_ANDROID && PICO
|
||||
if (_sender != null)
|
||||
{
|
||||
Vector3 forward = transform.forward;
|
||||
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);
|
||||
}
|
||||
#endif
|
||||
//#if !UNITY_EDITOR && UNITY_ANDROID && PICO
|
||||
// if (_sender != null)
|
||||
// {
|
||||
// Vector3 forward = transform.forward;
|
||||
// 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);
|
||||
// }
|
||||
//#endif
|
||||
if (currentHp <= 0 && IsAlive)
|
||||
{
|
||||
IsAlive = false;
|
||||
|
||||
Reference in New Issue
Block a user