资源简介
这是一个unity写的zuma的demo游戏
代码片段和文件信息
using UnityEngine;
using System.Collections;
using UnityEditor;
public class LevelLayoutEditor {
[MenuItem (“Tools/Zuma/LevelConfig2Json“ false 1001)]
public static void GameLevelLayout () {
string assetPath = @“Assets/Resources/map.asset“;
if (Selection.activeGameobject == null)
throw new UnityException (“must select Map“);
Transform map = Selection.activeGameobject.transform;
MapConfig info = AssetDatabase.LoadAssetAtPath (assetPath typeof (MapConfig)) as MapConfig;
bool isExist = (info != null);
if (info == null) {
Debug.Log (“AssetDatabase not exist MapConfig“);
info = scriptableobject.CreateInstance () as MapConfig;
}
info.MapInfo = new Vector3 [map.childCount];
for (int i =0 L = map.childCount; i < L; ++i) {
Transform t = map.GetChild (i);
info.MapInfo [i] = t.localPosition;
}
if ( !isExist ) {
AssetDatabase.CreateAsset (info assetPath);
return;
}
// 这里很重要,如果没有告诉unity已经被改变。它只写入内存,没有写入磁盘
EditorUtility.SetDirty (info);
AssetDatabase.SaveAssets();
}
[MenuItem (“Tools/Zuma/“ false 1002)]
public static void GameLevelLayoutBreak () {
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1935 2016-06-19 15:38 Zuma.sln
文件 1942 2016-06-19 15:38 Zuma-csharp.sln
文件 1243 2016-06-19 10:51 Assets\Game\Editor\LevelLayout.cs
..A..H. 178 2016-06-18 16:52 Assets\Game\Editor\LevelLayout.cs.me
..A..H. 107 2016-06-18 16:52 Assets\Game\Editor.me
文件 21733 2015-12-31 16:51 Assets\Game\Resources\Sound\monkey_02.mp3
..A..H. 205 2016-06-18 16:39 Assets\Game\Resources\Sound\monkey_02.mp3.me
文件 42246 2015-12-24 17:23 Assets\Game\Resources\Sound\monkey_03.mp3
..A..H. 205 2016-06-18 16:39 Assets\Game\Resources\Sound\monkey_03.mp3.me
文件 1177 2015-12-24 17:23 Assets\Game\Resources\Sound\monkey_04.mp3
..A..H. 213 2016-06-18 16:39 Assets\Game\Resources\Sound\monkey_04.mp3.me
文件 18389 2015-12-24 17:23 Assets\Game\Resources\Sound\monkey_05.mp3
..A..H. 205 2016-06-18 16:39 Assets\Game\Resources\Sound\monkey_05.mp3.me
文件 24693 2015-12-24 17:23 Assets\Game\Resources\Sound\monkey_06.mp3
..A..H. 205 2016-06-18 16:39 Assets\Game\Resources\Sound\monkey_06.mp3.me
文件 14244 2015-12-24 17:23 Assets\Game\Resources\Sound\monkey_07.mp3
..A..H. 205 2016-06-18 16:40 Assets\Game\Resources\Sound\monkey_07.mp3.me
文件 65652 2015-12-24 17:23 Assets\Game\Resources\Sound\monkey_08.mp3
..A..H. 205 2016-06-18 16:39 Assets\Game\Resources\Sound\monkey_08.mp3.me
文件 323031 2015-12-31 16:51 Assets\Game\Resources\Sound\monkey_09.mp3
..A..H. 213 2016-06-18 16:39 Assets\Game\Resources\Sound\monkey_09.mp3.me
文件 9228 2015-12-24 17:23 Assets\Game\Resources\Sound\monkey_11.mp3
..A..H. 205 2016-06-18 16:39 Assets\Game\Resources\Sound\monkey_11.mp3.me
文件 65234 2015-12-24 17:23 Assets\Game\Resources\Sound\monkey_12.mp3
..A..H. 205 2016-06-18 16:39 Assets\Game\Resources\Sound\monkey_12.mp3.me
..A..H. 107 2016-06-18 16:39 Assets\Game\Resources\Sound.me
..A..H. 107 2016-06-18 16:39 Assets\Game\Resources.me
I.A.... 139880 2016-06-19 10:39 Assets\Game\Scenes\Layout.unity
..A..H. 90 2016-06-18 16:51 Assets\Game\Scenes\Layout.unity.me
I.A.... 22578 2016-06-19 16:26 Assets\Game\Scenes\Main.unity
............此处省略668个文件信息
- 上一篇:TPli
nk 841N V7编程器固件 - 下一篇:arcgisserver开发实验2
相关资源
- unity 海底各色鱼类模型
-
Unity AnimationPla
yer工具 - Unity太阳系模拟
- unity 3d实战核心技术详解
- UniWebView 3 3.12.1.zip
- NYC Zip Code ShapeFile 纽约的zipcode shapfi
- Unity3D常用模型
- 视频解码器OpenCodecSetup64位
- CFD-Fortran-code
- freeScale codeWarrior IDE 教程(包含网上的
- Unity引擎中烟雾特效的物理模拟
- unity2d_拼图小游戏
- UniWebView 3 最新版更新于2019年8月30日
- book-page.unitypackage
- libmp3lame(3.100)_iOS静态库支持arm64v
- zw_code-CSS3.zip
- zw_ScanCodeDemo.zip
-
Pagefr
ame.unitypackage - Examples.unitypackage
- Unity3D Highlighting System 5.0
- UI界面上展示多个3D模型
- 2D Shooter Bullet and Weapon System.unitypacka
- unity Entitas+1.5.1 生成器,附带使用Je
- FlyBird Unity3D 源码 含资源设计AI源文件
- Unity做的雷电小游戏修正
- CubismSdkForUnity-4-beta.1.unitypackage
- UIEffect-develop.zip
- Shader Forge 1.3.8.0_unity2018.unitypackage
- unity2D塔防游戏源码Tower+Defense+2D+0.9.
- Unity3D从入门到精通.pdf
评论
共有 条评论