Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IEnumerator Get_Data(Action<string> callback)
- {
- callback("Hallo");
- yield return 0;
- }
- void Start()
- {
- StartCoroutine(Get_Data((data) =>
- {
- Debug.Log(data);
- }));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement