• 大小: 44.6MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-07
  • 语言: 其他
  • 标签: Unity  Unity3D  游戏  

资源简介

Unity3D制作的2D游戏)[含项目源码]

资源截图

代码片段和文件信息

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;
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-06-29 22:47  XimTheWarriorCurrent\Assets\
     文件        1784  2009-10-18 21:23  XimTheWarriorCurrent\Assets\animatescript.cs
     文件         398  2009-10-18 11:28  XimTheWarriorCurrent\Assets\animateTo.js
     文件         340  2010-03-01 13:10  XimTheWarriorCurrent\Assets\animPngResourcescript.js
     文件        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\Bossscript.js
     文件       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个文件信息

评论

共有 条评论