标签:
从 asset store 下载 Survival Shooter Unity4.6 版本用的那个
删除多余的代码及文件夹
/Scripts/ <-- 因为没有用
/Scenes/ <-- 因为是空的
/Animation/ <-- 因为是空的
/Prefabs/Hellephant.prefab
/Prefabs/ZomBear.prefab
删完后应该是这样的:
执行菜单:Mobile Input | Disable
添加 Coroutine-Update
// 文件
// 要添加的代码
void LateUpdate() { jsimp.Coroutine.UpdateCoroutineAndInvoke(this); }
Joystick.cs 类定义改成:(之前逗号有问题)
public class Joystick : MonoBehaviour, IPointerUpHandler, IPointerDownHandler, IDragHandler
执行菜单:JSB | Add SharpKit JsType Attribute for all Structs and Classes
编译 SharpKit 工程
Replace!
_CompletedAssets/Prefabs/Hellephant.prefab _CompletedAssets/Prefabs/Player.prefab _CompletedAssets/Prefabs/ZomBear.prefab _CompletedAssets/Prefabs/ZomBunny.prefab Prefabs/Environment.prefab Prefabs/GunParticles.prefab Prefabs/Hellephant.prefab Prefabs/HitParticles.prefab Prefabs/Lights.prefab Prefabs/ZomBear.prefab _CompletedAssets/Scenes/Level 01.unity
JSBinding + SharpKit / 实战:转换 Survival Shooter
标签:
原文地址:http://www.cnblogs.com/answerwinner/p/4687547.html