Esempio n. 1
0
 public static Texture2D GetNextIMG()
 {
     SnapShotSaves.currentIndex++;
     if (SnapShotSaves.currentIndex >= SnapShotSaves.maxIndex)
     {
         SnapShotSaves.currentIndex = 0;
     }
     return(SnapShotSaves.getCurrentIMG());
 }
Esempio n. 2
0
 public static Texture2D GetPrevIMG()
 {
     SnapShotSaves.currentIndex--;
     if (SnapShotSaves.currentIndex < 0)
     {
         SnapShotSaves.currentIndex = SnapShotSaves.maxIndex - 1;
     }
     return(SnapShotSaves.getCurrentIMG());
 }
Esempio n. 3
0
 private void Start()
 {
     QualitySettings.SetQualityLevel(5, true);
     this.page = this.labelPage.GetComponent <UILabel>();
     if (SnapShotSaves.getLength() > 0)
     {
         this.texture.GetComponent <UITexture>().mainTexture = SnapShotSaves.getCurrentIMG();
     }
     this.labelInfo.GetComponent <UILabel>().text = LoginFengKAI.player.name + " " + DateTime.Today.ToShortDateString();
     this.freshInfo();
     this.setTextureWH();
 }