public void OpenParticles() { var bps = BackgroundParticleSystem.gameObject; bps.transform.localPosition = new Vector3(0, 0, 1200); bps.transform.rotation = Quaternion.Euler(90, 90, 0); LeanTween.moveLocalZ(bps, 80, 5f).setEaseOutBack(); LeanTween.rotate(bps, new Vector3(0, 0, 0), 3f).setDelay(2.5f).setEaseInOutCubic(); LeanTween.value(1.5f, 5.5f, 0.2f).setDelay(5f).setOnUpdate(ChangeParticleSizes); LeanTween.value(5.5f, 1.5f, 0.5f).setDelay(5.2f).setOnUpdate(ChangeParticleSizes); Flash.gameObject.SetActive(true); LeanTween.value(0, 0.75f, 0.2f).setDelay(5f).setOnUpdate((f) => { Flash.color = new Color(Matek.color.r, Matek.color.g, Matek.color.b, f); }).setOnComplete(() => { Title.gameObject.SetActive(true); Title.fontSize = 250; Matek.gameObject.SetActive(true); StartButton.gameObject.SetActive(true); MainButtonGroup.gameObject.SetActive(true); Facebook.gameObject.SetActive(true); FacebookUser.gameObject.SetActive(true); LeanTween.delayedCall(1.5f, () => { if (PlayerPrefs.GetInt("VN") < 10) //9 current version { PlayerPrefs.SetInt("VN", 9); PlayerPrefs.Save(); Notice.OpenNotice(this.gameObject, "Patch Notes", "New fancy animation at startup", "UI animations accross game revamped (rip life)", "Added Facebook intergration!", "Leaderboard facebook intergration works!!!", "Added two different game modes", "Ignore the music settings...", "I have patch notes popup :O", "Many other thing I forgot!" ); } }); }); LeanTween.value(0.75f, 0, 0.4f).setDelay(5.25f).setOnUpdate((f) => { Flash.color = new Color(Matek.color.r, Matek.color.g, Matek.color.b, f); }).setOnComplete(() => { Flash.gameObject.SetActive(false); }); //LeanTween.value(244, 234, 1.2f).setDelay(5f).setOnUpdate((f) => { // Title.fontSize = (int)f; //}); }