This commit is contained in:
parent
de097df8af
commit
860b8bee36
|
@ -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}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b040f9a182855c8418d868f705a8e7d0
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,24 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using DG.Tweening;
|
||||
|
||||
/// <summary>
|
||||
/// 微波武器攻击
|
||||
/// </summary>
|
||||
public class MicrowaveweaponAttack : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// 微波武器
|
||||
/// </summary>
|
||||
public Microwaveweapon microwaveweapon;
|
||||
|
||||
/// <summary>
|
||||
/// 微波显示
|
||||
/// </summary>
|
||||
public void MicrowaveDisplay(float show)
|
||||
{
|
||||
transform.DOScaleZ(show, 1);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 570cc7737e6f63b45ac54c3bb1a7ec4c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,78 @@
|
|||
using DG.Tweening;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// 重点保护目标
|
||||
/// </summary>
|
||||
public class HighPriorityTarget : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// 重点保护目标集合
|
||||
/// </summary>
|
||||
public static List<HighPriorityTarget> HighPriorityTargets = new List<HighPriorityTarget>();
|
||||
/// <summary>
|
||||
/// 重点设备完整度
|
||||
/// </summary>
|
||||
public static float EquipmentIntegrity = 1;
|
||||
|
||||
|
||||
#region 单体保护目标属性
|
||||
/// <summary>
|
||||
/// 单体保护目标属性血量
|
||||
/// </summary>
|
||||
public float HP = 100;
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 重点目标UI看向摄像机
|
||||
/// </summary>
|
||||
public Transform KeyObjectiveUI;
|
||||
|
||||
/// <summary>
|
||||
/// 爆炸预制体
|
||||
/// </summary>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 被攻击
|
||||
/// </summary>
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0e0ba15c2e152f74d80232cb3ddeaa3d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue