/// <summary> /// Removes an actor by channelId /// </summary> /// <param name="channelId"></param> public static void Remove(int channelId) { var actorInfo = NativeActorMethods.GetActorInfoByChannelId((ushort)channelId); if (actorInfo.Id != 0) { NativeActorMethods.RemoveActor(actorInfo.Id); } }
/// <summary> /// Removes an actor by entity id. /// </summary> /// <param name="id"></param> public static void Remove(EntityId id) { NativeActorMethods.RemoveActor(id); }