66 lines
1.7 KiB
C#
66 lines
1.7 KiB
C#
using Assets.MyGame.Scripts.Net.WebResponses;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class DefaultBossControl : MonsterControl_BossBase
|
|
{
|
|
|
|
|
|
public override void OnEnable()
|
|
{
|
|
base.OnEnable();
|
|
|
|
}
|
|
public void TimeDieFish()
|
|
{
|
|
CreateFishManager.Instance.Id_DieFish_NotFX(guid);
|
|
|
|
}
|
|
public override void DieFish(RoomKillNotice obj = null)
|
|
{
|
|
base.DieFish(obj);
|
|
CreateFishManager.Instance.Id_DieFish_NotFX(guid);
|
|
action_effect_DieAward = (o) =>
|
|
{
|
|
if (obj == null) return;
|
|
|
|
foreach (var item in CreateFishManager.Instance.currGameType.list_Sits)
|
|
{
|
|
if (item.user == obj.userId)
|
|
{
|
|
|
|
|
|
|
|
var v = o.GetComponent<BJEventBase>();
|
|
v.Init(
|
|
obj.gold, // goldCount
|
|
item.posID, // posID
|
|
obj.skillsGold, // paobei
|
|
obj.fishScore, // fishScore
|
|
obj.beishu, // beishu
|
|
JiaFen // action<int>
|
|
);
|
|
|
|
}
|
|
}
|
|
};
|
|
}
|
|
public override void OnDisable()
|
|
{
|
|
|
|
//GetComponent<Animator>().enabled = false;
|
|
if (currEffect_DieAward != null)
|
|
currEffect_DieAward.SetActive(true);
|
|
}
|
|
public override void OnMoveUpdata()
|
|
{
|
|
|
|
base.OnMoveUpdata();
|
|
if (moveTime >= monsterData.moveLine.moveTime)
|
|
{
|
|
CreateFishManager.Instance.Id_DieFish_NotFX(guid);
|
|
}
|
|
}
|
|
}
|