Actor class


Actor class represents an entity in a room. One player can have multiple actors.

Methods

SetState

Sets the state of the actor. The state must have a registered serializer.

void SetState<T>(T state);

Broadast

Broadcasts the message inside the room.

 void Broadcast<T>(T data);

Delete

Deletes the actor from the room.

 void Delete();

results matching ""

    No results matching ""