1
This commit is contained in:
@@ -209,12 +209,21 @@ public class MonsterContral : MonoBehaviour
|
||||
fishenum = (FishTypeEnum)monsterData.fishTypeConfig.fishType;
|
||||
|
||||
// 路径结束后自动销毁
|
||||
StartCoroutine(yanchi(gameObject,time));
|
||||
StartCoroutine(yanchi(gameObject,time, isyuzhen));
|
||||
}
|
||||
public IEnumerator yanchi(GameObject obj,float time)
|
||||
public IEnumerator yanchi(GameObject obj,float time, bool isyuzhen)
|
||||
{
|
||||
if (isyuzhen)
|
||||
{
|
||||
Debug.Log($"[MonsterContral] 鱼阵 {yzID} 路线结束,等待 {time} 秒后销毁"+ guid);
|
||||
}
|
||||
yield return new WaitForSeconds(time);
|
||||
if (isyuzhen)
|
||||
{
|
||||
Debug.Log($"[MonsterContral] 鱼阵 {yzID} 路线结束,销毁对象" + guid);
|
||||
}
|
||||
CreateFishManager.Instance.Id_DieFish_NotFX(guid);
|
||||
|
||||
}
|
||||
// ================================================================
|
||||
// 状态机
|
||||
@@ -309,7 +318,9 @@ public class MonsterContral : MonoBehaviour
|
||||
|
||||
// 702 / 710:贝塞尔曲线路径
|
||||
case "702":
|
||||
case "710":
|
||||
case "7007":
|
||||
case "710": // 顺序阵:每条路径逐一延迟生成
|
||||
case "704":
|
||||
{
|
||||
Vector2 next = monsterData.moveLine.GetBezierPointJob(moveTime);
|
||||
if (fishenum != FishTypeEnum.Boss鱼)
|
||||
|
||||
@@ -262,7 +262,7 @@ public class MonsterControl_BossBase : MonsterContral
|
||||
|
||||
}
|
||||
public float dieTime = 3f;
|
||||
public Vector3 v3;
|
||||
public Vector3 v3;//分数飞出位置
|
||||
IEnumerator yanchidie()
|
||||
{
|
||||
yield return new WaitForSeconds(dieTime);
|
||||
|
||||
Reference in New Issue
Block a user