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); }