void OnUnsubscribed(WorkshopItemEventArgs args) { // Debug.Log(args.ErrorMessage); // if (args.IsError) Debug.Log(args.ErrorMessage); // else Debug.Log("ybsubbed" + args.Item.IsSubscribed); workshopItem = args.Item; subscribeButtonText.text = SUBSCRIBE_TEXT; }
private void OnSubscribed(WorkshopItemEventArgs args) { if (args.Item.SteamNative.m_nPublishedFileId == workshopItem.SteamNative.m_nPublishedFileId) { workshopItem = args.Item; unsubscribeButton.gameObject.SetActive(true); } }
protected virtual void OnItemInstalled(WorkshopItemEventArgs p_itemArgs) { OnItemUpdated(m_btnPlay).Invoke(p_itemArgs); }