資源簡(jiǎn)介
Unity3D制作的2D游戲)[含項(xiàng)目源碼]
代碼片段和文件信息
using?UnityEngine;
using?System.Collections;
public?class?animatescript?:?MonoBehaviour?{
int?countPass=0;
float?posX;
float?posY;
float?posZ;
float?posTime;
string?easeType;
void?easeElement(string?arg1){
easeType=arg1;
//print(easeType);
}
void?moveElement(float?arg1){
countPass++;
//print?(arg1);
if?(countPass==1){
posX=arg1;
}?else
if?(countPass==2){
posY=arg1;
}?else
if?(countPass==3){
posZ=arg1;
}?else
if?(countPass==4){
posTime=arg1;
Hashtable?props?=?new?Hashtable();
props.Add(“position“?new?Vector3(posXposYposZ));
//print(easeType);
//---------------------------------------------------------------------------------------
if?(easeType==“LinearEasing“){
props.Add(“easing“?Ani.AnimationEasingType.LinearEasing);
}
if?(easeType==“QuadraticEasing“){
props.Add(“easing“?Ani.AnimationEasingType.QuadraticEasing);
}
if?(easeType==“CubicEasing“){
props.Add(“easing“?Ani.AnimationEasingType.CubicEasing);
}
if?(easeType==“QuarticEasing“){
props.Add(“easing“?Ani.AnimationEasingType.QuarticEasing);
}
if?(easeType==“QuinticEasing“){
props.Add(“easing“?Ani.AnimationEasingType.QuinticEasing);
}
if?(easeType==“SinusoidalEasing“){
props.Add(“easing“?Ani.AnimationEasingType.SinusoidalEasing);
}
if?(easeType==“ExponentialEasing“){
props.Add(“easing“?Ani.AnimationEasingType.ExponentialEasing);
}
if?(easeType==“CircularEasing“){
props.Add(“easing“?Ani.AnimationEasingType.CircularEasing);
}
//---------------------------------------------------------------------------------------
//props.Add(“direction“?2);
Ani.Mate.To(transform?posTime?props);
posTime=arg1;
}
if?(countPass>=4){
countPass=0;
}
}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2010-06-29?22:47??XimTheWarriorCurrent\Assets\
?????文件????????1784??2009-10-18?21:23??XimTheWarriorCurrent\Assets\animatesc
?????文件?????????398??2009-10-18?11:28??XimTheWarriorCurrent\Assets\animateTo.js
?????文件?????????340??2010-03-01?13:10??XimTheWarriorCurrent\Assets\animPngResourcesc
?????文件????????9333??2009-10-28?23:31??XimTheWarriorCurrent\Assets\Bolgok.prefab
?????文件???????13554??2009-11-13?22:49??XimTheWarriorCurrent\Assets\Boss1.prefab
?????文件????????1217??2009-11-14?00:00??XimTheWarriorCurrent\Assets\Bosssc
?????文件???????58950??2009-07-27?22:23??XimTheWarriorCurrent\Assets\crunch1.ogg
?????目錄???????????0??2010-06-29?22:48??XimTheWarriorCurrent\Assets\Decors\
?????目錄???????????0??2010-06-29?22:48??XimTheWarriorCurrent\Assets\Decors\decor1Main?1.fbm\
?????文件???????52873??2010-08-08?07:55??XimTheWarriorCurrent\Assets\Decors\decor1Main?1.fbm\fondRocher.png
?????文件??????322736??2009-04-13?14:57??XimTheWarriorCurrent\Assets\Decors\decor1Main?1.fbx
?????目錄???????????0??2010-06-29?22:48??XimTheWarriorCurrent\Assets\Decors\fondLevel1.fbm\
?????文件???????64644??2010-08-08?07:55??XimTheWarriorCurrent\Assets\Decors\fondLevel1.fbm\fondLevel1.png
?????目錄???????????0??2010-06-29?22:48??XimTheWarriorCurrent\Assets\Decors\fondLevel1.fbm\Materials\
?????文件????????3407??2009-10-28?23:48??XimTheWarriorCurrent\Assets\Decors\fondLevel1.fbm\Materials\fondlevel1.mat
?????文件??????331184??2009-04-16?17:33??XimTheWarriorCurrent\Assets\Decors\fondLevel1.fbx
?????目錄???????????0??2010-06-29?22:48??XimTheWarriorCurrent\Assets\Decors\fondMur.fbm\
?????目錄???????????0??2010-06-29?22:48??XimTheWarriorCurrent\Assets\Decors\fondMur.fbm\Materials\
?????文件????????3910??2009-06-29?22:21??XimTheWarriorCurrent\Assets\Decors\fondMur.fbm\Materials\tile3.mat
?????文件??????214694??2010-08-08?07:55??XimTheWarriorCurrent\Assets\Decors\fondMur.fbm\tile3.png
?????文件??????321392??2009-05-11?22:29??XimTheWarriorCurrent\Assets\Decors\fondMur.fbx
?????文件???????52873??2009-04-12?22:40??XimTheWarriorCurrent\Assets\Decors\fondRocher.png
?????文件???????49246??2009-04-13?22:06??XimTheWarriorCurrent\Assets\Decors\fondRocher1.png
?????目錄???????????0??2010-06-29?22:48??XimTheWarriorCurrent\Assets\Decors\level1Elements2.fbm\
?????文件???????55019??2010-01-12?00:38??XimTheWarriorCurrent\Assets\Decors\level1Elements2.fbm\level1Elements2.png
?????文件??????280112??2009-07-12?22:06??XimTheWarriorCurrent\Assets\Decors\level1Elements2.fbx
?????目錄???????????0??2010-06-29?22:48??XimTheWarriorCurrent\Assets\Decors\Materials\
?????文件????????3410??2009-10-29?00:21??XimTheWarriorCurrent\Assets\Decors\Materials\bordure-borduresurf.mat
?????文件????????3269??2009-10-28?23:33??XimTheWarriorCurrent\Assets\Decors\Materials\bordure-default.mat
?????文件????????3269??2009-10-28?23:33??XimTheWarriorCurrent\Assets\Decors\Materials\decor1main?1-default.mat
............此處省略2574個(gè)文件信息
- 上一篇:串口和網(wǎng)口通信測(cè)試軟件綠色版
- 下一篇:《代碼閱讀》光盤文件1
評(píng)論
共有 條評(píng)論