Interface ICharacterBehaviour
Interface for character behaviour components that can be registered to a character. Defines lifecycle methods for initialization and client state changes.
public interface ICharacterBehaviour
Properties
Character
The character this behaviour is attached to.
ICharacter Character { get; }
Property Value
Initialized
True if this behaviour has been initialized for its character.
bool Initialized { get; }
Property Value
Methods
InitializeOnce(ICharacter)
Initializes the behaviour with the specified character. Called once per behaviour instance.
void InitializeOnce(ICharacter character)
Parameters
characterICharacterThe character to initialize for.
OnStartCharacter()
Called when the character starts on the client. Use for local client initialization.
void OnStartCharacter()
OnStopCharacter()
Called when the character stops on the client. Use for local client cleanup.
void OnStopCharacter()