Exemplo n.º 1
0
    private void Start()
    {
        if (path == "")
        {
            return;
        }

#if !UNITY_EDITOR
        LAppDefine.DEBUG_LOG       = false;
        LAppDefine.DEBUG_TOUCH_LOG = false;
#endif
        model = new LAppModel(this);


        Live2D.init();
        Live2DFramework.setPlatformManager(new PlatformManager());

        var filename = FileManager.getFilename(path);
        var dir      = FileManager.getDirName(path);
        model.LoadFromStreamingAssets(dir, filename);

        // model.loadTexture(2, "haru/haru_01.1024/texture_03.png");
    }
Exemplo n.º 2
0
 private void ClearL2D()
 {
     Live2DFramework.setPlatformManager(null);
     Live2D.dispose();
 }
Exemplo n.º 3
0
 private void InitializeL2D()
 {
     Live2D.init();
     Live2DFramework.setPlatformManager(new PlatformManager());
 }
Exemplo n.º 4
0
 public LAppLive2DManager()
 {
     Live2D.init();
     Live2DFramework.setPlatformManager(new PlatformManager());
     models = new List <LAppModelProxy>();
 }