Exemplo n.º 1
0
    void Start()
    {
        //Initilize values for Platform

        zTranslate = 10.0f;
        yTranslate = 5.5f;
        xTranslate = 1.18f;

        xForce = Screen.width / 5.07f;

        PlayerPrefs.SetInt("OutFlag", 0);

        GameChanceScore = PlayerPrefs.GetInt("GameChanceScore", 0);
        if (GameChanceScore > 0)
        {
            PlayerPrefs.SetInt("DestroyObstacle", 1);
            SpeedTextBox.SetActive(true);
            CanvasHome.SetActive(false);
            speedIncreaser = GameChanceScore / zTranslate;
            velocityBall   = Ball.velocity;
            velocityBall.y = yTranslate * 1.67f;
            Ball.velocity  = velocityBall;
            FindObjectOfType <PlatformMultiplier>().FunMultiply();
        }
    }
Exemplo n.º 2
0
 public void  PlayButtonClick()
 {
     SpeedTextBox.SetActive(true);
     CanvasHome.SetActive(false);
     FindObjectOfType <BallMove>().PlayButton();
 }