- 博客(4)
- 收藏
- 关注
原创 C# String
C# String API 方法详细 飞书文档C# Tostring格式public class StringTest : MonoBehaviour{ int number = 2345; void Start() { //string value = number.ToString("n");//2,345.00 //string value = number.ToString("c");//¥2,345.00 //strin
2021-09-28 15:32:24
127
原创 C# Dictionary
C# Dictionary 属性、方法using System.Collections;using System.Collections.Generic;using UnityEngine;public class DictionaryTest : MonoBehaviour{ Dictionary<string, string> keyValues = new Dictionary<string, string>(); private string ou
2021-09-27 15:57:37
131
原创 Unity多场景叠加显示
Unity多场景叠加显示最近做项目,又多个场景模型来回切换的需求,但UI通用,为了方便开发使用了场景叠加的解决方案public void LoadLevel(string leveName, bool isFirst = false){ SceneIndex.UIActive = false; if (!isFirst) { StartCoroutine(UnLoadScene(leveName)); }else { StartCoroutine(
2021-09-27 11:16:14
2492
原创 C# HashSet
C# HashSet 用法using System.Collections.Generic;using UnityEngine;public class Test : MonoBehaviour{private static string[] hello = new string[] {“one”,“two”,“three”,“four” };HashSet companyTeams = new HashSet(hello);string[] world = new string[] { “o
2021-09-27 10:56:49
193
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人