Ejemplo n.º 1
0
 public static Texture2D GetNextIMG()
 {
     SnapShotSaves.currentIndex++;
     if (SnapShotSaves.currentIndex >= SnapShotSaves.maxIndex)
     {
         SnapShotSaves.currentIndex = 0;
     }
     return(SnapShotSaves.getCurrentIMG());
 }
Ejemplo n.º 2
0
 public static Texture2D GetPrevIMG()
 {
     SnapShotSaves.currentIndex--;
     if (SnapShotSaves.currentIndex < 0)
     {
         SnapShotSaves.currentIndex = SnapShotSaves.maxIndex - 1;
     }
     return(SnapShotSaves.getCurrentIMG());
 }
Ejemplo 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();
 }