// 画像を1枚後のものに切り替える public void ChangeAdd() { nTexture++; bSEPase = true; if (nTexture == 8) { nTexture = 7; //GameObject.Find("tocyuuFade").GetComponent<tocyuuFade>().FadeStart(); bSEPase = false; } // SEを鳴らす if (bSEPase) { Sound.PlaySe("SE_Page"); } switch (nTexture) { case 1: Img.sprite = Sprite.Create(Setumei_1, new Rect(0, 0, Setumei_1.width, Setumei_1.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 2: Img.sprite = Sprite.Create(Setumei_2, new Rect(0, 0, Setumei_2.width, Setumei_2.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 3: Img.sprite = Sprite.Create(Setumei_3, new Rect(0, 0, Setumei_3.width, Setumei_3.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 4: Img.sprite = Sprite.Create(Setumei_4, new Rect(0, 0, Setumei_4.width, Setumei_4.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 5: Img.sprite = Sprite.Create(Setumei_5, new Rect(0, 0, Setumei_5.width, Setumei_5.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 6: Img.sprite = Sprite.Create(Setumei_6, new Rect(0, 0, Setumei_6.width, Setumei_6.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 7: Img.sprite = Sprite.Create(Setumei_7, new Rect(0, 0, Setumei_7.width, Setumei_7.height), Vector2.zero); uiflush_cs.StartFlush(); // 点滅開始 break; } circle_cs.ChangeActive(nTexture); // 丸変更 }
// 画像を1枚後のものに切り替える public void ChangeAdd() { nTexture++; bSEPase = true; // ページ音を鳴らす if (nTexture == 7) { nTexture = 6; bSEPase = false; // やっぱりページ音は鳴らさない } // SEを鳴らす if (bSEPase) { Sound.PlaySe("SE_Page"); } switch (nTexture) { case 1: Img.sprite = Sprite.Create(Setumei_1, new Rect(0, 0, Setumei_1.width, Setumei_1.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 2: Img.sprite = Sprite.Create(Setumei_2, new Rect(0, 0, Setumei_2.width, Setumei_2.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 3: Img.sprite = Sprite.Create(Setumei_3, new Rect(0, 0, Setumei_3.width, Setumei_3.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 4: Img.sprite = Sprite.Create(Setumei_3to4, new Rect(0, 0, Setumei_3to4.width, Setumei_3to4.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 5: Img.sprite = Sprite.Create(Setumei_4, new Rect(0, 0, Setumei_4.width, Setumei_4.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 6: Img.sprite = Sprite.Create(Setumei_5, new Rect(0, 0, Setumei_5.width, Setumei_5.height), Vector2.zero); uiflush_cs.StartFlush(); // 点滅開始 break; } // 変わった画像に対応する丸をアクティブにする GameObject.Find("Setumei_circle").GetComponent <Story_setucircle>().ChangeActive(nTexture); }
// 画像を1枚後のものに切り替える public void ChangeAdd() { nTexture++; bSEPase = true; // ページ音を鳴らす if (nTexture == 7) { nTexture = 6; bSEPase = false; // やっぱりページ音は鳴らさない } // SEを鳴らす if (bSEPase) { Sound.PlaySe("SE_Page"); } switch (nTexture) { case 1: Img.sprite = Sprite.Create(Setumei_1, new Rect(0, 0, Setumei_1.width, Setumei_1.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 2: Img.sprite = Sprite.Create(Setumei_2, new Rect(0, 0, Setumei_2.width, Setumei_2.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 3: Img.sprite = Sprite.Create(Setumei_3, new Rect(0, 0, Setumei_3.width, Setumei_3.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 4: Img.sprite = Sprite.Create(Setumei_4, new Rect(0, 0, Setumei_4.width, Setumei_4.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 5: Img.sprite = Sprite.Create(Setumei_5, new Rect(0, 0, Setumei_5.width, Setumei_5.height), Vector2.zero); uiflush_cs.StopFlush(); // 点滅停止 break; case 6: Img.sprite = Sprite.Create(Setumei_6, new Rect(0, 0, Setumei_6.width, Setumei_6.height), Vector2.zero); uiflush_cs.StartFlush(); // 点滅開始 break; } circle_cs.ChangeActive(nTexture); // 丸変更 }