示例#1
0
        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)));
        }
示例#2
0
        public void loadPhysics(String path)
        {
            IPlatformManager pm = Live2DFramework.getPlatformManager();

            if (debugMode)
            {
                pm.log("Load Physics : " + path);
            }
            physics = L2DPhysics.load(pm.loadBytes(path));
        }
示例#3
0
        public void loadPose(String path)
        {
            IPlatformManager pm = Live2DFramework.getPlatformManager();

            if (debugMode)
            {
                pm.log("Load Pose : " + path);
            }
            pose = L2DPose.load(pm.loadBytes(path));
        }
示例#4
0
        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;
        }