1
This commit is contained in:
@@ -22,7 +22,7 @@ public class MonsterContral : MonoBehaviour
|
||||
public MonsterDataBase monsterData = new MonsterDataBase(new MonsterHealthBase());
|
||||
public SkeletonAnimation skeleton;
|
||||
public bool isSpine = true;
|
||||
public string fishTypeID;
|
||||
public int fishTypeID;
|
||||
public Dictionary<CharacterAnimationType, string> dic_AnimKeyAnimName = new Dictionary<CharacterAnimationType, string>();
|
||||
public CharacterStateType currState;
|
||||
public int HP = 5;
|
||||
@@ -38,6 +38,7 @@ public class MonsterContral : MonoBehaviour
|
||||
public virtual void DieFish(RoomKillNotice obj =null)
|
||||
{
|
||||
Destroy(gameObject);
|
||||
AudioManager.Instance.PlayerFX(FishResourcesData.fishResourcesDatasDic[fishTypeID].dieAudio[0]);
|
||||
}
|
||||
|
||||
//递归查找子物体
|
||||
@@ -162,7 +163,7 @@ public class MonsterContral : MonoBehaviour
|
||||
{
|
||||
OnUpdate(currState);
|
||||
}
|
||||
public void Start()
|
||||
public virtual void Start()
|
||||
{
|
||||
fishenum = (FishTypeEnum)monsterData.fishTypeConfig.fishType;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user