/** 找到可用的动作配置 */ private ModelMotionConfig findUseMotionConfig(int modelID, int id) { ModelMotionConfig config = ModelMotionConfig.get(modelID, id); if (config == null) { int backID; MotionConfig mConfig; if ((mConfig = MotionConfig.get(id)) == null) { return(null); } if ((backID = mConfig.backID) == id) { return(null); } return(findUseMotionConfig(modelID, backID)); } return(config); }
/** 获取当前的模型动作配置 */ public ModelMotionConfig getModelActionConfig() { if (_actionID == -1) { return(null); } return(ModelMotionConfig.get(_unit.avatar.getModelID(), _actionID)); }