public override void OnPluginMsgDirect(JsonObject jsonMsg) { PluginMsgHandler.GetInstanceForReceiver(this).StartCoroutine(PluginsMessageRoutine(jsonMsg)); }
protected virtual void OnDestroy() { PluginMsgHandler.GetInstanceForReceiver(this).RemoveReceiver(_receiverId); }
protected JsonObject SendPluginMsg(JsonObject jsonMsg) { return(PluginMsgHandler.GetInstanceForReceiver(this).SendMsgToPlugin(_receiverId, jsonMsg)); }
protected virtual void Start() { _receiverId = PluginMsgHandler.GetInstanceForReceiver(this).RegisterAndGetReceiverId(this); }