资源简介

unity3d 写的一个跑酷的小游戏 解压可以运行 对于进阶的朋友是个不错的资源 对新手也有很多的借鉴意义

资源截图

代码片段和文件信息

//-----------------------------------------------------------------
// SpriteTimelineEditor v1.0 (1-25-2010)
//  Copyright 2009 Brady Wright and Above and Beyond Software
// All rights reserved
//-----------------------------------------------------------------


// Uncomment to display texture names in the timeline:
// #define SHOW_TEX_NAMES

using UnityEditor;
using UnityEngine;
using System.Collections;


public class TextureAnimSettingsTracker
{
string name;
int loopCycles;
bool loopReverse;
float framerate;

public bool Synch(TextureAnim t)
{
bool changed = false;

if (name != t.name)
changed = true;
if (loopCycles != t.loopCycles)
changed = true;
if (loopReverse != t.loopReverse)
changed = true;
if (framerate != t.framerate)
changed = true;

name = t.name;
loopCycles = t.loopCycles;
loopReverse = t.loopReverse;
framerate = t.framerate;

return changed;
}
}


public class SpriteTimelineEditor : EditorWindow
{
static SpriteTimelineEditor instance;
static SpriteTimeline timelineInstance;
bool closing = false;
Rect wndRect;


[UnityEditor.MenuItem(“Window/Sprite Timeline &t“)]
static public void ShowEditor()
{
#if UNITY_IPHONE && !(UNITY_3_0 || UNITY_3_1 || UNITY_3_2 || UNITY_3_3 || UNITY_3_4 || UNITY_3_5 || UNITY_3_6 || UNITY_3_7 || UNITY_3_8 || UNITY_3_9)
if (instance != null)
{
instance.Show(true);
return;
}

instance = new SpriteTimelineEditor();

if(timelineInstance == null)
timelineInstance = new SpriteTimeline();

// Get the selected object and see if it has a sprite:
timelineInstance.Editor = instance;
timelineInstance.SetupSelection();
instance.position = new Rect(200 200 700 400);
timelineInstance.position = instance.position;
timelineInstance.SetupRects();

instance.autoRepaintOnSceneChange = true;
instance.Show(true);
#else
if (instance != null)
{
instance.ShowUtility();
return;
}

instance = (SpriteTimelineEditor)EditorWindow.GetWindow(typeof(SpriteTimelineEditor) false “Sprite Timeline“);

if (timelineInstance == null)
timelineInstance = new SpriteTimeline();

timelineInstance.Editor = instance;
/*
timelineInstance.SetupSelection();
timelineInstance.SetupRects();
*/
timelineInstance.position = instance.position;

instance.ShowUtility();
#endif
instance.wndRect = instance.position;
}



public void OnDisable()
{
#if UNITY_IPHONE && !(UNITY_3_0 || UNITY_3_1 || UNITY_3_2 || UNITY_3_3 || UNITY_3_4 || UNITY_3_5 || UNITY_3_6 || UNITY_3_7 || UNITY_3_8 || UNITY_3_9)
this.Close();
#endif
}

public void OnCloseWindow()
{
#if UNITY_IPHONE && !(UNITY_3_0 || UNITY_3_1 || UNITY_3_2 || UNITY_3_3 || UNITY_3_4 || UNITY_3_5 || UNITY_3_6 || UNITY_3_7 || UNITY_3_8 || UNITY_3_9)
instance = null;
closing = true;
DestroyImmediate(this);
#endif
}


// Relay events to our timeline editor if availab

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-02-27 17:34  Pao\
     文件        5843  2013-01-16 10:50  Pao\Assembly-CSharp-Editor-vs.csproj
     文件        5896  2013-01-16 10:50  Pao\Assembly-CSharp-Editor.csproj
     文件       58827  2013-01-15 16:08  Pao\Assembly-CSharp-Editor.pidb
     文件        7324  2013-01-16 10:50  Pao\Assembly-CSharp-firstpass-vs.csproj
     文件        7324  2013-01-16 10:50  Pao\Assembly-CSharp-firstpass.csproj
     文件      650294  2013-01-15 16:08  Pao\Assembly-CSharp-firstpass.pidb
     文件        3517  2013-01-16 23:07  Pao\Assembly-Unityscript-vs.unityproj
     文件       15445  2013-02-27 17:34  Pao\Assembly-Unityscript.pidb
     文件        3511  2013-01-16 23:07  Pao\Assembly-Unityscript.unityproj
     目录           0  2013-01-15 16:04  Pao\Assets\
     目录           0  2013-02-27 17:33  Pao\Assets\Code\
     文件        4256  2013-01-16 23:00  Pao\Assets\Code\script_Game.js
     文件         216  2013-01-15 18:49  Pao\Assets\Code\script_Help.js
     文件         294  2013-01-16 23:21  Pao\Assets\Code\script_Lose.js
     文件         770  2013-02-27 17:33  Pao\Assets\Code\script_Menu.js
     文件         216  2013-01-15 19:14  Pao\Assets\Code\script_More.js
     文件        1682  2013-01-16 23:29  Pao\Assets\Code\script_Peng.js
     文件        1683  2013-01-16 23:22  Pao\Assets\Code\script_Win.js
     目录           0  2013-01-15 15:22  Pao\Assets\Editor\
     目录           0  2013-01-15 15:22  Pao\Assets\Editor\AnBSoft\
     目录           0  2013-01-15 15:22  Pao\Assets\Editor\AnBSoft\Editors\
     文件       44625  2011-05-14 07:04  Pao\Assets\Editor\AnBSoft\Editors\SpriteTimelineEditor.cs
     文件       24693  2011-05-26 02:38  Pao\Assets\Editor\AnBSoft\Editors\UICtlEditor.cs
     文件       13501  2011-05-26 02:39  Pao\Assets\Editor\AnBSoft\Editors\UIPanelEditor.cs
     目录           0  2013-01-15 15:22  Pao\Assets\Editor\AnBSoft\Inspectors\
     文件         595  2011-01-23 03:39  Pao\Assets\Editor\AnBSoft\Inspectors\UIActionBtnInspector.cs
     文件         628  2011-01-23 03:39  Pao\Assets\Editor\AnBSoft\Inspectors\UIBistateInteractivePanelInspector.cs
     文件         605  2011-01-23 03:39  Pao\Assets\Editor\AnBSoft\Inspectors\UIBtnChangePanelInspector.cs
     文件         601  2011-01-23 03:39  Pao\Assets\Editor\AnBSoft\Inspectors\UIBtnLoadSceneInspector.cs
     文件         589  2011-01-23 03:39  Pao\Assets\Editor\AnBSoft\Inspectors\UIBtnWWWInspector.cs
............此处省略1937个文件信息

评论

共有 条评论