This commit is contained in:
账号名 2024-01-21 19:47:34 +08:00
parent 6b8725f0f8
commit 456459788b
11 changed files with 227 additions and 12 deletions

View File

@ -8446,6 +8446,7 @@ MonoBehaviour:
selectedSide: 1
equipmentType: "\u5FAE\u6CE2\u6B66\u5668"
deviceID:
ISPlayer: 0
explodePrefab: {fileID: 1000013462590818, guid: ecdd96beb7f93494880c052dfccf9dc1,
type: 3}
isMove: 1

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -0,0 +1,104 @@
fileFormatVersion: 2
guid: b92c45ad89b8714458fac3b3e49d4fcd
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: -1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -0,0 +1,104 @@
fileFormatVersion: 2
guid: 1fc471879c76d584f97b0bfea0bbe918
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: -1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -113,7 +113,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 91, y: 51}
m_SizeDelta: {x: 75, y: 44}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3438159621899897971
CanvasRenderer:
@ -142,7 +142,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 347ce00d63d27a945ad947f85941f339, type: 3}
m_Sprite: {fileID: 21300000, guid: dfb3b6fc11d64104992e827ac7b8687f, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@ -256,3 +256,4 @@ MonoBehaviour:
deviceID:
isPlayer: 0
isThinck: 0
wrjModel: 0

View File

@ -113,7 +113,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 91, y: 51}
m_SizeDelta: {x: 65, y: 62}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3438159621899897971
CanvasRenderer:
@ -142,7 +142,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: fc81585c46f5e6747bf4f1bb89b8e102, type: 3}
m_Sprite: {fileID: 21300000, guid: b92c45ad89b8714458fac3b3e49d4fcd, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@ -256,3 +256,4 @@ MonoBehaviour:
deviceID:
isPlayer: 0
isThinck: 0
wrjModel: 0

View File

@ -113,7 +113,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 91, y: 51}
m_SizeDelta: {x: 80, y: 60}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3438159621899897971
CanvasRenderer:
@ -142,7 +142,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: dfb3b6fc11d64104992e827ac7b8687f, type: 3}
m_Sprite: {fileID: 21300000, guid: 1fc471879c76d584f97b0bfea0bbe918, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@ -256,3 +256,4 @@ MonoBehaviour:
deviceID:
isPlayer: 0
isThinck: 0
wrjModel: 0

View File

@ -211,7 +211,9 @@ public class Microwaveweapon : MonoBehaviour
{
if (miceopos!=null)
{
microblog.MicrowaveDisplay(micdistance);
micdistance = Vector3.Distance(miceopos.position, transform.position);
Debug.Log("倍数" + micdistance/10);
microblog.MicrowaveDisplay(micdistance/10);
Closeattack(miceopos);
}
}
@ -225,17 +227,18 @@ public class Microwaveweapon : MonoBehaviour
UnmannedAerialVehicle unmannedAerialVehicle =pos.GetComponent<UnmannedAerialVehicle>();
if (unmannedAerialVehicle!=null)
{
Destructiondata(unmannedAerialVehicle);
StartCoroutine(Destructiondata(unmannedAerialVehicle));
StartCoroutine(Offlaserstrike());
}
}
/// <summary>
/// 击毁无人机
/// </summary>
public void Destructiondata(UnmannedAerialVehicle unmannedAerialVehicle)
public IEnumerator Destructiondata(UnmannedAerialVehicle unmannedAerialVehicle)
{
var newdata = Aeroplane(unmannedAerialVehicle);
DeviceManager.Instance.send2roomStr.Enqueue(newdata);
yield return new WaitForSeconds(1);
GameObject game = Instantiate(Destructioneffect, unmannedAerialVehicle.transform);
game.transform.localPosition = Vector3.zero;
game.transform.SetParent(null);
@ -270,7 +273,7 @@ public class Microwaveweapon : MonoBehaviour
//接收激光下发的位置
Vector3 vector =new Vector3(float.Parse(data[2]), float.Parse(data[3]),float.Parse(data[4]));
microwavemoder.transform.DOLookAt(vector, 0.1f).SetEase(Ease.Linear).OnComplete(() => {
microblog.MicrowaveDisplay(micdistance);
microblog.MicrowaveDisplay(micdistance/10);
StartCoroutine(Offlaserstrike());
});

View File

@ -172,7 +172,7 @@ public class DeviceManager : MonoSingleton<DeviceManager>
}
else if (info[0] == "KeyTarget")
{
Debug.Log("KeyTarget...:" + data);
//Debug.Log("接收处理KeyTarget...:" + data);
HighPriorityTarget highPriorityTarget= HighPriorityTarget.HighPriorityTargets.Find(x => x.Number == info[1]);
if(highPriorityTarget)
{

View File

@ -70,7 +70,7 @@ public class HighPriorityTarget : MonoBehaviour
{
HP -= 10;
string nowData = GetSyncDis(Pos);
Debug.Log(nowData);
//Debug.Log("发送:"+nowData);
_ = SyncCreateRoom.SendMessageAsync(string.Format("send2room {0}", nowData));
}
else