private void setButtonDefault(int i) { if (AppScript.isNewYear()) { getImage(i).color = new Color(9f / 255f, 125f / 255f, 0f / 255f, 255f / 255f); } else { getImage(i).color = new Color(255f / 255f, 255f / 255f, 255f / 255f, imageAlpha / 255f); } getText(i).color = new Color(255f / 255f, 255f / 255f, 255f / 255f, textAlpha / 255f); //getText(i).color = new Color (0f / 255f, 0f / 255f, 0f / 255f, 21f / 255f); //getText(i).color = new Color (219f / 255f, 56f / 255f, 18f / 255f,imageAlpha+10f / 255f); }
private AsyncOperation async = null; // When assigned, load is in progress. void Start() { Debug.Log("start level loading"); Loom.QueueOnMainThread(() => { if (AppScript.isNewYear()) { SyncLoadLevel("mainScene_winter"); } else { SyncLoadLevel("mainScene"); } }, 0f); image.fillAmount = 0; version.text = "v" + Application.version; }