//delegate void InitDelegate(); //void Init() //{ // if (this.InvokeRequired) // this.Invoke(new InitDelegate(_Init)); // else // _Init(); //} void Init(object sender, EventArgs args) { this.scenePattern = Library.GetScenePattern("snptrn0");//new ScenePattern("ScenePattern"); this.scene = (Scene)this.soshiant33Panel.engine.AddChild(this.scenePattern, null); this.scene.رنگ_زمینه = this.BackColor; this.scene.Pause(); //base Plane SpritePattern plane = new SpritePattern("Plane Pattern"); SpriteState state = plane.AddNewState("st0"); state.صورت = "basePlane.x"; state.AddNewKeyFrame(0); Sprite basePlane = (Sprite)scene.AddChild(plane, null); basePlane.مولفه_ها.موقعیت.z = 1000; //Target Sprite this.spritePattern = new SpritePattern("SpritePatern" + patternCounter++.ToString()); this.sprite = (Sprite)this.scene.AddChild(this.spritePattern, null); this.soshiant33Panel.engine.camera.Fly(250); this.soshiant33Panel.engine.camera.Pitch(0.4f); this.soshiant33Panel.engine.camera.Walk(220); this.soshiant33Panel.engine.Resize(this.soshiant33Panel.Width, this.soshiant33Panel.Height); //this.splitContainer2.SplitterDistance = 200; if (this.OnTurnedOn != null) { this.OnTurnedOn(this, null); } }
void Start() { //読み込んだデータの処理 for (column = 0; column < storyCSVDatas.Count; column++) { for (row = 0; row < storyCSVDatas[column].Length; row++) { storyNumber = int.Parse(storyCSVDatas[1][0]); s_title = storyCSVDatas[storyID + 1][17]; storyID = readStartNumber; clearCondition = storyCSVDatas[storyID + 1][19]; storyCharacterName = storyCSVDatas[storyID + 1][2]; storySheetText = storyCSVDatas[storyID + 1][3]; storyText.text = storySheetText; if (storySheetText != null) { nameText.text = storyCharacterName; } else { nameText.text = ""; } LOneCharacterImageNum = int.Parse(storyCSVDatas[storyID + 1][4]); ROneCharacterImageNum = int.Parse(storyCSVDatas[storyID + 1][5]); LTwoCharacterImageNum = int.Parse(storyCSVDatas[storyID + 1][6]); RTwoCharacterImageNum = int.Parse(storyCSVDatas[storyID + 1][7]); LOneCharacterWindowImage.sprite = c_ImgManager.characterImage[LOneCharacterImageNum]; LTwoCharacterWindowImage.sprite = c_ImgManager.characterImage[LTwoCharacterImageNum]; ROneCharacterWindowImage.sprite = c_ImgManager.characterImage[ROneCharacterImageNum]; RTwoCharacterWindowImage.sprite = c_ImgManager.characterImage[RTwoCharacterImageNum]; LOneBlackOut = storyCSVDatas[storyID + 1][8]; ROneBlackOut = storyCSVDatas[storyID + 1][9]; LTwoBlackOut = storyCSVDatas[storyID + 1][10]; RTwoBlackOut = storyCSVDatas[storyID + 1][11]; endFlag = int.Parse(storyCSVDatas[storyID + 1][12]); nextStory = storyCSVDatas[storyID + 1][13]; nextreadStartNumber = int.Parse(storyCSVDatas[storyID + 1][14]); nextreadEndNumber = int.Parse(storyCSVDatas[storyID + 1][15]); sceneMode = int.Parse(storyCSVDatas[storyID + 1][16]); if (sceneMode == 0) { scenePattern = ScenePattern.Message; } else { scenePattern = ScenePattern.Battle; } nextLoadScene = storyCSVDatas[storyID + 1][18]; } } red = 1f; green = 1f; blue = 1f; BlackOut(); }