This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using NoSuchStudio.Common; | |
public class MyClassWithLogger: MonoBehaviourWithLogger | |
{ | |
public void OnButtonClick() { | |
LogLog("Hello World!"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class TestLocationService : MonoBehaviour | |
{ | |
IEnumerator LocationCoroutine() { | |
// Uncomment if you want to test with Unity Remote | |
/*#if UNITY_EDITOR | |
yield return new WaitWhile(() => !UnityEditor.EditorApplication.isRemoteConnected); | |
yield return new WaitForSecondsRealtime(5f); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class TextLocalizer : MonoBehaviour | |
{ | |
public static string CurrentLanguage = "english"; | |
static Dictionary<string, Dictionary<string, string>> Translations = new Dictionary<string, Dictionary<string, string>>() { | |
["english"] = new Dictionary<string, string>() { |
OlderNewer