Exemple #1
0
    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;
    }
Exemple #2
0
    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);
        });
    }
Exemple #3
0
 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);
 }
Exemple #4
0
    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));
    }
Exemple #5
0
 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();
 }