|
|
@@ -1,3 +1,4 @@
|
|
|
+using Sirenix.OdinInspector;
|
|
|
using System.Collections;
|
|
|
using System.Collections.Generic;
|
|
|
using UnityEngine;
|
|
|
@@ -19,6 +20,7 @@ public class IceRainController : MonoBehaviour
|
|
|
public float time;
|
|
|
public int num;
|
|
|
public float height;
|
|
|
+ [LabelText("É˺¦¼ÓÖµ")] public float flatDamageBonus;
|
|
|
public void Update()
|
|
|
{
|
|
|
if (!start) return;
|
|
|
@@ -26,7 +28,7 @@ public class IceRainController : MonoBehaviour
|
|
|
if(time < 0)
|
|
|
{
|
|
|
GameObject obj = PoolManager.Instantiate(sword);
|
|
|
- owner.attackController.curAttackMethod.attackInfo.damage = damage;
|
|
|
+ owner.attackController.curAttackMethod.attackInfo.damage = damage + flatDamageBonus;
|
|
|
owner.attackController.curAttackMethod.attackInfo.attackMethod_Type = AttackMethod_Type.Attack_Summon;
|
|
|
Vector3 targetPos = new Vector3(dir * Random.Range(PosRangeX.x,PosRangeX.y), height, Random.Range(-PosRangeZ, PosRangeZ));
|
|
|
targetPos = pos + targetPos;
|