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