void Start() { System.GC.Collect(); if (initialAudioListenerSound < 0) { initialAudioListenerSound = AudioListener.volume; } AudioListener.volume = 0; TweenY.Add(gameTitle, 2f, 0f).EaseOutElasticWith(20, 0.625f); PatternLoader.instance.LoadPatterns(); initialCameraPosition = Camera.main.transform.position; float xPaddingMulti = (widthToHeightRatio / ((Screen.width * 1f) / (Screen.height * 1f))); camPadXMin = xPaddingMulti * camPadXMin; camPadXMax = xPaddingMulti * camPadXMax; floorText.text = "FLOOR " + floor; textBestFloorMainMenu.text = "BEST " + GetHighScore(0).ToString(); goldText.text = "0"; TVNTCharacterController.flipVerticalInput = flipVerticalInput; TVNTCharacterController.flipHorizontalInput = flipHorizontalInput; debugText.text = PatternSettings.patternPath; }
private void AttractionUpDownTween() { Vector3 origin = flock.originTarget.position; TweenY.Add(flock.originTarget.gameObject, 4f, origin.y - 10f).EaseInOutSine().Then(() => { TweenY.Add(flock.originTarget.gameObject, 4f, origin.y + 10f).EaseInOutSine().Then(AttractionUpDownTween); }); }
public void StartGame() { TweenY.Add(gameTitle, 0.5f, 500f).EaseInElasticWith(20, 0.625f); activeCharacter.GetComponent <TVNTCharacterController> ().activate = true; tapToStartButton.SetActive(false); settingsButton.SetActive(false); textBestFloorMainMenu.gameObject.SetActive(false); textFloor.SetActive(true); hearts.SetActive(true); }
private void ShowGameMenu() { //Spawn the introductory pattern that shows up on the main menu SpawnIntroductoryPattern(); SetupCamera(); //Camera.main.transform.position = new Vector3(0,18,0); TweenY.Add(gameTitle, 0.65f, 250f).EaseInBackWith(2).Delay(0.125f); TweenA.Add(mainMenuOverlay.gameObject, 1f, 0).EaseInOutExpo().Then(HideOverlay); StartCoroutine(FadeSoundIn(0.65f)); }
public void Activate() { TweenY.Add(gameObject, 0.5f, boundsY) .EaseOutBounce() .OnComplete += () => { finished = true; }; }
public void Rise() { TweenY.Add(gameObject, tweenTime, 250).EaseInOutSine(); hasRisen = true; }
public void Fadeout() { fadeOut.SetActive(true); TweenA.Add(fadeOut, 0.4f, 1); TweenY.Add(gameObject, 0.25f, -50).EaseInOutSine(); }