Assets\Scripts\TestData.cs(40,55): error CS0246: The type or namespace name 'WebcastGiftMessage' could not be found (are you missing a using directive or an assembly reference?)
Assets\Scripts\TestData.cs(31,13): error CS0246: The type or namespace name 'TikTokLiveClient' could not be found (are you missing a using directive or an assembly reference?)
I want a basic test script: this is what i used:
using UnityEngine;
using TikTokLiveSharp;
using TikTokLiveSharp.Models;
public class TestData : MonoBehaviour
{
private TikTokLiveClient client;
void Start()
{
client = new TikTokLiveClient("uniqueID");
client.OnGiftReceived += Client_OnGiftReceived;
client.Start();
}
private void Client_OnGiftReceived(object sender, WebcastGiftMessage e)
{
Debug.Log($"{e.User.uniqueId} hat ein Geschenk gegeben: {e.Gift.name}");
}
I wnat to use this for my Unity Game. But there comes this Error. I installed the package in the package manager with this link: https://github.com/frankvHoof93/TikTokLiveSharp.git#TikTokLiveUnity
Assets\Scripts\TestData.cs(40,55): error CS0246: The type or namespace name 'WebcastGiftMessage' could not be found (are you missing a using directive or an assembly reference?)
Assets\Scripts\TestData.cs(31,13): error CS0246: The type or namespace name 'TikTokLiveClient' could not be found (are you missing a using directive or an assembly reference?)
I want a basic test script: this is what i used: using UnityEngine; using TikTokLiveSharp; using TikTokLiveSharp.Models;
public class TestData : MonoBehaviour { private TikTokLiveClient client;
}
Can someone help me?