private void Add_Click(object sender, EventArgs e) { EditCamera form = new EditCamera(); var result = form.ShowDialog(this); if (result != DialogResult.OK) { return; } try { var cam = new CameraInfo(); cam.Description = ""; cam.Id = form.CameraId; cam.Location = new Uri(form.Url); cam.Provider = form.CameraType; this.Presenter.AddCamera(cam); } catch (System.Exception ex) { MessageBox.Show(ex.Message); } }
void Start() { viewCam = GameObject.Find("Main Camera").GetComponent <EditCamera>(); txt = Resources.Load(viewerTextPath + "/ToonMaidCool_MotionList") as TextAsset; motionList = txt.text.Split(new char[] { '\n' }, 4); SetInitModel(); currentAsi = animator.GetCurrentAnimatorStateInfo(0); prevAsi = currentAsi; currentAsi_F = animator.GetCurrentAnimatorStateInfo(1); prevAsi_F = currentAsi_F; }
void Start() { viewCam = GameObject.Find("Main Camera").GetComponent<EditCamera>(); txt = Resources.Load(viewerTextPath + "/ToonMaidCool_MotionList") as TextAsset; motionList = txt.text.Split(new char[]{'\n'},4); SetInitModel(); currentAsi = animator.GetCurrentAnimatorStateInfo(0); prevAsi = currentAsi; currentAsi_F = animator.GetCurrentAnimatorStateInfo(1); prevAsi_F = currentAsi_F; }