public LAppModel(LAppModelProxy p) { if (isInitialized()) { return; } parent = p; if (parent.GetComponent <AudioSource>() != null) { asVoice = parent.gameObject.GetComponent <AudioSource>(); asVoice.playOnAwake = false; } else { if (LAppDefine.DEBUG_LOG) { Debug.Log("Live2D : AudioSource Component is NULL !"); } } bounds = parent.GetComponent <MeshFilter>().sharedMesh.bounds; view = new LAppView(this, parent.transform); view.StartAccel(); //if (LAppDefine.DEBUG_LOG) mainMotionManager.setMotionDebugMode(true); }
public LAppModel(LAppModelProxy p) { if (isInitialized()) return; parent = p; if (parent.GetComponent<AudioSource>() != null) { asVoice = parent.gameObject.GetComponent<AudioSource>(); asVoice.playOnAwake = false; } else { if (LAppDefine.DEBUG_LOG) { Debug.Log("Live2D : AudioSource Component is NULL !"); } } bounds = parent.GetComponent<MeshFilter>().sharedMesh.bounds; view = new LAppView(this, parent.transform); view.StartAccel(); //if (LAppDefine.DEBUG_LOG) mainMotionManager.setMotionDebugMode(true); }
public void AddModel(LAppModelProxy item) { if (LAppDefine.DEBUG_LOG) { Debug.Log("Add Live2D Model : " + item.sceneNo); } this.models.Add(item); this.UpdateScene(); }
public void AddModel(LAppModelProxy item) { if (LAppDefine.DEBUG_LOG) { Debug.Log("Add Live2D Model : " + item.sceneNo); } models.Add(item); UpdateScene(); }
void Start() { modelManager = GetComponent <LAppModelProxy>(); live2DModel = modelManager.GetModel().getLive2DModel(); motionMgr = new MotionQueueManager(); motion = Live2DMotion.loadMotion(motionFile.bytes); int i = 0; foreach (TextAsset t in motionFiles) { motions[i] = Live2DMotion.loadMotion(motionFiles[i].bytes); i++; } InvokeRepeating("RandomMotion", 10, 10); }
void Start() { modelManager = GetComponent <LAppModelProxy>(); live2DModel = modelManager.GetModel().getLive2DModel(); motionMgr = new MotionQueueManager(); motion = Live2DMotion.loadMotion(motionFile.bytes); target = GameObject.FindGameObjectWithTag("Player"); AtkMotion = Live2DMotion.loadMotion(AttackMotion.bytes); attack = StartCoroutine(Attack()); int Stage = PlayerPrefs.GetInt("stage", 1); Damage = 20 + (5 * Stage); HP = 100 + (10 * Stage); }
public LAppModel(LAppModelProxy p) { if (!base.isInitialized()) { this.parent = p; if (this.parent.audio != null) { this.asVoice = this.parent.gameObject.audio; this.asVoice.playOnAwake = false; } else if (LAppDefine.DEBUG_LOG) { Debug.Log("Live2D : AudioSource Component is NULL !"); } this.bounds = this.parent.GetComponent<MeshFilter>().sharedMesh.bounds; this.view = new LAppView(this, this.parent.transform); this.view.StartAccel(); } }
void Awake() { l2dInterface = gameObject.GetComponent<LAppModelProxy>(); }