摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace _01IO流 9 { 10 class Progra... 阅读全文
posted @ 2018-09-18 11:37 白纸菇凉 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Unity中的单例方法:https://www.cnblogs.com/Dean27/p/7744452.html 阅读全文
posted @ 2018-09-12 20:50 白纸菇凉 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 5 public class DestroyTenAndTenRang : MonoBehaviour { 6 public 阅读全文
posted @ 2018-09-12 20:46 白纸菇凉 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 1.池子的脚本,开头注释部分是单例的,正在用的是伪单例,伪单列需要随便找个物体把脚本挂起来,单例不需要挂脚本,,也不继承任何东西: 2.点击button生成物体,: 3.生成出来的物体到一定位移后失活:脚本挂在本身上,再把物体传入到第一个脚本里的save: 阅读全文
posted @ 2018-09-12 20:44 白纸菇凉 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 单列不断生成球,点击butten的时候 1池子的编写: 2.点击butten的时候: 3.在自己的物体上挂脚本,让它到一定点失活,然后传参数: 阅读全文
posted @ 2018-09-12 20:37 白纸菇凉 阅读(175) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class BirdController : MonoBehaviour { int score = 0; public Text ... 阅读全文
posted @ 2018-09-11 17:27 白纸菇凉 阅读(244) 评论(0) 推荐(0) 编辑