跳转至

SimpleMob

格式

SimpleMob

简介

设置角色继承预制的SimpleMob类,该类方法详见SimpleMob

实例

当运行开始时设置角色mob继承预制的SimpleMob类。

import fg

mob = fg.AssetCreate((fg.SimpleMob,))
mob.name = 'mob'
mob.state = fg.STATE.MOBILE
mob.mobSkeleton = 'skeleton.ozz'
mob.mobMesh = 'mesh.ozz'
mob.mobTexture = 'texture.png'
mob.mobAction = 'action.ozz'
mob.icon='mob.png'