public void loadExpression(String name, String path) { IPlatformManager pm = Live2DFramework.GetPlatformManager(); if (debugMode) pm.log("Load Expression : " + path); expressions.Add(name, L2DExpressionMotion.loadJson(pm.loadBytes(path))); }
public void loadPhysics(String path) { IPlatformManager pm = Live2DFramework.getPlatformManager(); if (debugMode) { pm.log("Load Physics : " + path); } physics = L2DPhysics.load(pm.loadBytes(path)); }
public void loadPose(String path) { IPlatformManager pm = Live2DFramework.getPlatformManager(); if (debugMode) { pm.log("Load Pose : " + path); } pose = L2DPose.load(pm.loadBytes(path)); }
public AMotion loadMotion(String name, String path) { IPlatformManager pm = Live2DFramework.GetPlatformManager(); if (debugMode) pm.log("Load Motion : " + path); Live2DMotion motion = null; byte[] buf = pm.loadBytes(path); motion = Live2DMotion.loadMotion(buf); if (name != null) { motions.Add(name, motion); } return motion; }