This commit is contained in:
parent
7245f8cbef
commit
9c9e671c89
|
@ -258,14 +258,14 @@ public class UnmannedAerialVehicle : MonoBehaviour
|
||||||
Vector3 _v3 = attackTarget.position;
|
Vector3 _v3 = attackTarget.position;
|
||||||
transform.DOLookAt(_v3, 0.1f).OnComplete(() =>
|
transform.DOLookAt(_v3, 0.1f).OnComplete(() =>
|
||||||
{
|
{
|
||||||
if (wrjModel == WRJModel.光学无人机)
|
//if (wrjModel == WRJModel.光学无人机)
|
||||||
{
|
//{
|
||||||
Debug.Log("光学无人机攻击");
|
// Debug.Log("光学无人机攻击");
|
||||||
StopCoroutine(RangedAttack());
|
// StopCoroutine(RangedAttack());
|
||||||
StartCoroutine(RangedAttack());
|
// StartCoroutine(RangedAttack());
|
||||||
}
|
//}
|
||||||
else
|
//else
|
||||||
{
|
//{
|
||||||
string nowData = GetSyncData(attackTarget);
|
string nowData = GetSyncData(attackTarget);
|
||||||
Debug.Log(nowData);
|
Debug.Log(nowData);
|
||||||
MyNetMQClient.instance.Send(nowData);
|
MyNetMQClient.instance.Send(nowData);
|
||||||
|
@ -280,7 +280,7 @@ public class UnmannedAerialVehicle : MonoBehaviour
|
||||||
// //BeAssaulted("没有攻击到目标");
|
// //BeAssaulted("没有攻击到目标");
|
||||||
//}
|
//}
|
||||||
});
|
});
|
||||||
}
|
//}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue