123456789101112131415161718192021222324252627 |
- using GFGGame.Launcher;
- using UnityEngine;
- namespace GFGGame
- {
- public class Live2dAnimationManager : SingletonMonoBase<Live2dAnimationManager>
- {
- private GameObject preDrawRoot;
- private void Awake()
- {
- preDrawRoot = new GameObject("Live2dAnimationManager");
- preDrawRoot.transform.position = new Vector3(100, 0, 0);
- }
- public GameObject PreDraw(string resPath)
- {
- var t = PrefabManager.Instance.SpawnSync(resPath);
- t.transform.SetParent(preDrawRoot.transform, false);
- return t;
- }
- public void FinishPreDrawed(GameObject t)
- {
- PrefabManager.Instance.Restore(t);
- }
- }
- }
|