您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
589 B

using Unity.Netcode;
namespace Unity.Multiplayer.Samples.BossRoom
{
/// <summary>
/// Shared state for a Projectile.
/// </summary>
public class NetworkProjectileState : NetworkBehaviour
{
/// <summary>
/// This event is raised when the arrow hit an enemy. The argument is the NetworkObjectId of the enemy.
/// </summary>
public System.Action<ulong> HitEnemyEvent;
[ClientRpc]
public void RecvHitEnemyClientRPC(ulong enemyId)
{
HitEnemyEvent?.Invoke(enemyId);
}
}
}