35 lines
819 B
C#
35 lines
819 B
C#
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using BehaviorDesigner.Runtime;
|
|
using DragonLi.Core;
|
|
using DragonLi.Frame;
|
|
using Mirror;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace Valheim
|
|
{
|
|
public class FishMan : Fish
|
|
{
|
|
public GameObject cry;
|
|
|
|
[Server]
|
|
public override void Die(object info, Transform _sender)
|
|
{
|
|
GameManager.Ins.EnemyList.Remove(this);
|
|
NavAgent.enabled = false;
|
|
GameManager.Ins.CreateSpawnBallPoint(new Vector3(transform.position.x, 0.1F, transform.position.z));
|
|
GameManager.Ins.CheckAreaSettle(areaId);
|
|
//PlayDeadSound();
|
|
CryRpc(true);
|
|
}
|
|
|
|
[ClientRpc]
|
|
public void CryRpc(bool show)
|
|
{
|
|
cry.SetActive(show);
|
|
}
|
|
}
|
|
}
|