Unity 53

배열을 Dictionary로 사용. 직열화, 인터팩터 창에 출력가능.

대충 만들어서 미구현된 부분이 많음.. using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using System; [Serializable] //[SerializeField] public class DataBase { public string id; public int num; } [Serializable] //[SerializeField] public class ListToDIc: IDictionary, ISerializationCallbackReceiver { public DataBase[] dataBase = new DataBase[2] { new DataBase() { id..

모바일 네트워크 상태 확인

Application.internetReachability == NetworkReachability.NotReachable // 인터넷 연결이 안되었을때. Application.internetReachability == NetworkReachability.ReachableViaLocalAreaNetwork // 와이파이 연결 Application.internetReachability == NetworkReachability.ReachableViaCarrierDataNetwork // LTE 5G등 데이터 연걸 private void CheckTransferNetwork() { if (Application.internetReachability == NetworkReachability.NotReachable..

NGUI 게임도중에 orientation을 이용해 가로세로전환

private void ChangeOrientation() { UIRoot mRoot = NGUITools.FindInParents(transform); int backup = mRoot.manualWidth; mRoot.manualWidth = mRoot.manualHeight; mRoot.manualHeight = backup; UnityEngine.Screen.autorotateToLandscapeLeft = !UnityEngine.Screen.autorotateToLandscapeLeft; UnityEngine.Screen.autorotateToLandscapeRight = !UnityEngine.Screen.autorotateToLandscapeRight; UnityEngine.Screen.au..