void Awake() { #if !NOT_TWITCH _twitchChatClient = TwitchChatClient.Instance; _twitchChatClient.AddOnCommandReceived(OnCommand); #endif }
void Start() { #if NOT_TWITCH debugInput.AddListener((command) => ProcessCommand(command)); #else _twitchChatClient = TwitchChatClient.Instance; _twitchChatClient.AddOnCommandReceived(OnCommand); #endif }