From 860b8bee36a2687cdafba9e26b310ce3110ed911 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=90=8D?= <3077614386@qq.com>
Date: Fri, 19 Jan 2024 09:18:30 +0800
Subject: [PATCH] 1
---
Assets/GameAssets/Materials/JiGuang/WeiBo.mat | 77 ++++++++++++++++++
.../Materials/JiGuang/WeiBo.mat.meta | 8 ++
Assets/Temp/Scripts/MicrowaveweaponAttack.cs | 24 ++++++
.../Scripts/MicrowaveweaponAttack.cs.meta | 11 +++
Assets/Zion/Scripts/HighPriorityTarget.cs | 78 +++++++++++++++++++
.../Zion/Scripts/HighPriorityTarget.cs.meta | 11 +++
6 files changed, 209 insertions(+)
create mode 100644 Assets/GameAssets/Materials/JiGuang/WeiBo.mat
create mode 100644 Assets/GameAssets/Materials/JiGuang/WeiBo.mat.meta
create mode 100644 Assets/Temp/Scripts/MicrowaveweaponAttack.cs
create mode 100644 Assets/Temp/Scripts/MicrowaveweaponAttack.cs.meta
create mode 100644 Assets/Zion/Scripts/HighPriorityTarget.cs
create mode 100644 Assets/Zion/Scripts/HighPriorityTarget.cs.meta
diff --git a/Assets/GameAssets/Materials/JiGuang/WeiBo.mat b/Assets/GameAssets/Materials/JiGuang/WeiBo.mat
new file mode 100644
index 00000000..613f1b29
--- /dev/null
+++ b/Assets/GameAssets/Materials/JiGuang/WeiBo.mat
@@ -0,0 +1,77 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!21 &2100000
+Material:
+ serializedVersion: 6
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_Name: WeiBo
+ m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ m_ShaderKeywords:
+ m_LightmapFlags: 4
+ m_EnableInstancingVariants: 0
+ m_DoubleSidedGI: 0
+ m_CustomRenderQueue: -1
+ stringTagMap: {}
+ disabledShaderPasses: []
+ m_SavedProperties:
+ serializedVersion: 3
+ m_TexEnvs:
+ - _BumpMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailAlbedoMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailMask:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailNormalMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _EmissionMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _MainTex:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _MetallicGlossMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _OcclusionMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _ParallaxMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ m_Floats:
+ - _BumpScale: 1
+ - _Cutoff: 0.5
+ - _DetailNormalMapScale: 1
+ - _DstBlend: 0
+ - _GlossMapScale: 1
+ - _Glossiness: 0.5
+ - _GlossyReflections: 1
+ - _Metallic: 0
+ - _Mode: 0
+ - _OcclusionStrength: 1
+ - _Parallax: 0.02
+ - _SmoothnessTextureChannel: 0
+ - _SpecularHighlights: 1
+ - _SrcBlend: 1
+ - _UVSec: 0
+ - _ZWrite: 1
+ m_Colors:
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
+ - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
diff --git a/Assets/GameAssets/Materials/JiGuang/WeiBo.mat.meta b/Assets/GameAssets/Materials/JiGuang/WeiBo.mat.meta
new file mode 100644
index 00000000..00574227
--- /dev/null
+++ b/Assets/GameAssets/Materials/JiGuang/WeiBo.mat.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: b040f9a182855c8418d868f705a8e7d0
+NativeFormatImporter:
+ externalObjects: {}
+ mainObjectFileID: 0
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Temp/Scripts/MicrowaveweaponAttack.cs b/Assets/Temp/Scripts/MicrowaveweaponAttack.cs
new file mode 100644
index 00000000..0248dbc3
--- /dev/null
+++ b/Assets/Temp/Scripts/MicrowaveweaponAttack.cs
@@ -0,0 +1,24 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using DG.Tweening;
+
+///
+/// 微波武器攻击
+///
+public class MicrowaveweaponAttack : MonoBehaviour
+{
+ ///
+ /// 微波武器
+ ///
+ public Microwaveweapon microwaveweapon;
+
+ ///
+ /// 微波显示
+ ///
+ public void MicrowaveDisplay(float show)
+ {
+ transform.DOScaleZ(show, 1);
+ }
+
+}
diff --git a/Assets/Temp/Scripts/MicrowaveweaponAttack.cs.meta b/Assets/Temp/Scripts/MicrowaveweaponAttack.cs.meta
new file mode 100644
index 00000000..d905dd51
--- /dev/null
+++ b/Assets/Temp/Scripts/MicrowaveweaponAttack.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 570cc7737e6f63b45ac54c3bb1a7ec4c
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Zion/Scripts/HighPriorityTarget.cs b/Assets/Zion/Scripts/HighPriorityTarget.cs
new file mode 100644
index 00000000..e68bc313
--- /dev/null
+++ b/Assets/Zion/Scripts/HighPriorityTarget.cs
@@ -0,0 +1,78 @@
+using DG.Tweening;
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+///
+/// 重点保护目标
+///
+public class HighPriorityTarget : MonoBehaviour
+{
+ ///
+ /// 重点保护目标集合
+ ///
+ public static List HighPriorityTargets = new List();
+ ///
+ /// 重点设备完整度
+ ///
+ public static float EquipmentIntegrity = 1;
+
+
+ #region 单体保护目标属性
+ ///
+ /// 单体保护目标属性血量
+ ///
+ public float HP = 100;
+
+ #endregion
+
+ ///
+ /// 重点目标UI看向摄像机
+ ///
+ public Transform KeyObjectiveUI;
+
+ ///
+ /// 爆炸预制体
+ ///
+ public GameObject explodePrefab;
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+ if (Camera.main)
+ KeyObjectiveUI.transform.LookAt(Camera.main.transform);
+ }
+
+ ///
+ /// 被攻击
+ ///
+ public void BeAssaulted()
+ {
+ HP -= 10;
+ if (HP <= 0)
+ {
+ GameObject Bao1 = Instantiate(explodePrefab, transform);
+ GameObject Bao2 = Instantiate(explodePrefab, transform);
+ GameObject Bao3 = Instantiate(explodePrefab, transform);
+ Vector3 v1 = new Vector3(Random.Range(0f, 1.5f), 0, Random.Range(0f, 1.5f));
+ Vector3 v2 = new Vector3(Random.Range(0f, 1.5f), 0, Random.Range(0f, 1.5f));
+ Vector3 v3 = new Vector3(Random.Range(0f, 1.5f), 0, Random.Range(0f, 1.5f));
+ Bao1.transform.localPosition = Vector3.zero + v1;
+ Bao2.transform.localPosition = Vector3.zero + v2;
+ Bao3.transform.localPosition = Vector3.zero + v3;
+ Bao1.transform.SetParent(null);
+ Bao2.transform.SetParent(null);
+ Bao3.transform.SetParent(null);
+ Bao1.SetActive(true);
+ Bao2.SetActive(true);
+ Bao3.SetActive(true);
+ Destroy(gameObject);
+ }
+ }
+
+}
diff --git a/Assets/Zion/Scripts/HighPriorityTarget.cs.meta b/Assets/Zion/Scripts/HighPriorityTarget.cs.meta
new file mode 100644
index 00000000..b4e86218
--- /dev/null
+++ b/Assets/Zion/Scripts/HighPriorityTarget.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 0e0ba15c2e152f74d80232cb3ddeaa3d
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant: