上一页 1 ··· 5 6 7 8 9
摘要: http://www.narkii.com/club/thread-297439-1.html 阅读全文
posted @ 2013-11-07 09:36 古刹红罗 阅读(196) 评论(0) 推荐(0)
摘要: int get() {}void set(int value) {}private int a;public int A{ get {return a;} set {a = value}}一个叫get的,不接受参数,返回一个定义好的类型。一个叫set的,接受一个定义好类型的参数,返回void。http://blog.csdn.net/bmzydream_007/article/details/4261402Public float A{ set { Debug.Log("Just boring!"); }}Public float A{ get... 阅读全文
posted @ 2013-11-05 22:07 古刹红罗 阅读(617) 评论(0) 推荐(0)
摘要: 摄像机做成SolidColorDepthOnly在RenderTexture上有问题 阅读全文
posted @ 2013-11-05 20:59 古刹红罗 阅读(214) 评论(0) 推荐(0)
摘要: Unity本身有PlayerPrefs来做一些数据的保存和读取,也可以通过循环来做批量的读取或者保存,下面这个脚本可以方便的调用用来做上面批量的工作,比如读取一组文本数组数据和保存一组文本数组数据.建议把这个脚本放在Standard Assets目录下,这样可以按照下面的方法方便的调用它.现在包含了下面这些命令: PlayerPrefsX.SetVector3 PlayerPrefsX.GetVector3 PlayerPrefsX.SetIntArray PlayerPrefsX.GetIntArray PlayerPrefsX.SetFloatArray PlayerPrefsX.GetF 阅读全文
posted @ 2013-11-04 13:38 古刹红罗 阅读(1949) 评论(0) 推荐(0)
摘要: protected这个是成员才能使用的方法override父类虚函数的实现out是在函数内部实例化变量 阅读全文
posted @ 2013-11-01 01:01 古刹红罗 阅读(106) 评论(0) 推荐(0)
摘要: HitForward(判断车前进方向 RaceForward.cs)--HitForward_A_Grp -- HitForward_A (碰撞体 RaceForwardSelf.cs)HitTest (各项目的碰撞 ) -- TestA_...(RaceTriggerToWarn.cs)HitWarn(各处提示碰撞)-- TestA_...(RaceTriggerToWarn.cs) 阅读全文
posted @ 2013-10-31 10:18 古刹红罗 阅读(140) 评论(0) 推荐(0)
摘要: InvokeRepeating("OnTriggerOver", 1, 1f);CancelInvoke(); 阅读全文
posted @ 2013-10-31 09:31 古刹红罗 阅读(612) 评论(0) 推荐(0)
摘要: using UnityEngine;using System.Collections;public class LoadLogoAsset : MonoBehaviour { public string _prefabName; public int _BundleIndex=0; //public string _nextScenesName; //public string _previousScenesName; public int _nextSceneIndex; public int _previousSceneIndex; public ... 阅读全文
posted @ 2013-10-26 16:21 古刹红罗 阅读(1727) 评论(0) 推荐(0)
摘要: 今天写了一个实时画曲线的功能,主要是想用于显示车辆的100公里加速,这里指写了一个测试还没能和主程序关联上using UnityEngine;using System.Collections;using System;using System.Collections.Generic;public class CurveTest : MonoBehaviour { public Material material; private float _speed=0; private float _timeA=0; private float _timeB=0; pri... 阅读全文
posted @ 2013-10-25 09:39 古刹红罗 阅读(5375) 评论(0) 推荐(0)
摘要: 我是一个三维动画师,之前也做过二维动画,我对代码一直充满兴趣,自己也学过很多代码,一直也没人教,都是自学,其实我知道代码的水挺深的,不好做,但是我还是不想放弃,我想继续前进... 阅读全文
posted @ 2013-10-25 09:35 古刹红罗 阅读(118) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9