마나 폭발

This commit is contained in:
Ino 2024-12-17 13:55:18 +09:00
parent ab2994c7a8
commit f37712be9c
4 changed files with 141 additions and 88057 deletions

View File

@ -21,15 +21,16 @@ Material:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Circle93bcg
m_Shader: {fileID: -6465566751694194690, guid: 00191177e5fd5c4468ad546ce87ef329, type: 3}
m_Shader: {fileID: -6465566751694194690, guid: 00191177e5fd5c4468ad546ce87ef329,
type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _BUILTIN_SURFACE_TYPE_TRANSPARENT
- _ENABLE_FOG_ON_TRANSPARENT
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords:
- _DOUBLESIDED_ON
- _ENABLE_FOG_ON_TRANSPARENT
- _USEDEPTH_ON
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
@ -43,6 +44,8 @@ Material:
- TransparentDepthPostpass
- TransparentBackface
- MOTIONVECTORS
- DepthOnly
- SHADOWCASTER
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
@ -160,12 +163,12 @@ Material:
- _Opacity: 1
- _OpaqueCullMode: 2
- _Parallax: 0.02
- _QueueControl: -1
- _QueueControl: 0
- _QueueOffset: 0
- _RenderQueueType: 3
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlend: 5
- _StencilRef: 0
- _StencilRefDepth: 1
- _StencilRefDistortionVec: 4

View File

@ -34,15 +34,16 @@ Material:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Trail21cg2
m_Shader: {fileID: -6465566751694194690, guid: 00191177e5fd5c4468ad546ce87ef329, type: 3}
m_Shader: {fileID: -6465566751694194690, guid: 00191177e5fd5c4468ad546ce87ef329,
type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _BUILTIN_SURFACE_TYPE_TRANSPARENT
- _ENABLE_FOG_ON_TRANSPARENT
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords:
- _DOUBLESIDED_ON
- _ENABLE_FOG_ON_TRANSPARENT
- _USEDEPTH_ON
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
@ -56,6 +57,8 @@ Material:
- TransparentDepthPostpass
- TransparentBackface
- MOTIONVECTORS
- DepthOnly
- SHADOWCASTER
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
@ -175,7 +178,7 @@ Material:
- _Opacity: 1
- _OpaqueCullMode: 2
- _Parallax: 0.02
- _QueueControl: -1
- _QueueControl: 0
- _QueueOffset: 0
- _RenderQueueType: 3
- _SmoothnessTextureChannel: 0

File diff suppressed because it is too large Load Diff

View File

@ -4,36 +4,43 @@ using UnityEngine;
public class Skill_ExplosionArea : ProjectileBase
{
[Header("스킬 판정 범위")]
public float area = 4f;
public BoxCollider m_Collider;
bool isStep3;
public override void Set(ProjectileData _data)
{
_data.eStartPos = eProjectileStartPos.ShooterCenter;
_data.eStartPos = eProjectileStartPos.Custom;
_data.v3_StartPos = _data.shooter.Get_position();
base.Set(_data);
transform.eulerAngles = new Vector3(90f, 0f);
transform.eulerAngles = Vector3.zero;
Set_ReduceCoolTime_byStep(1);
isStep3 = IsStep(3);
StartCoroutine(Co_ExplosionArea());
}
IEnumerator Co_ExplosionArea()
{
var explosionarea = area + (IsStep(2) ? Get_AwakenData(2, 1) : 0f);
yield return null;
var enemies = Get_Enemies();
var knockCount = 0;
for (int i = 0; i < enemies.Count; i++)
{
if (Vector3.Distance(transform.position, enemies[i].Get_position()) <= area)
{
++knockCount;
enemies[i].Get_Damage(Get_DamageInfo());
if (IsStep(3)) enemies[i].Stun_AfterKnockBack(Get_AwakenData(3, 1));
}
}
if (knockCount >= 15) ServerInfo.Ins.m_ServerData.Add_TitleCondition(63); // 칭호 : 접근금지명령
m_Collider.size = Vector3.one * 4f;
if (IsStep(2)) m_Collider.size = Vector3.one * (4f + Get_AwakenData(2, 1));
yield return new WaitForSeconds(1f);
Off();
m_Collider.enabled = false;
yield return new WaitForSeconds(2.8f);
m_Collider.enabled = true;
yield return new WaitForSeconds(0.05f);
m_Collider.enabled = false;
yield return new WaitForSeconds(0.5f);
Off(true);
}
public override bool ProcessCollider(Collider other, bool Off_byHit = true)
{
if (base.ProcessCollider(other, Off_byHit))
{
if (isStep3) other.GetComponent<Actor>().Stun_AfterKnockBack(Get_AwakenData(3, 1));
return true;
}
return false;
}
}