public void buttonscene()
    {
        switch (transform.name)
        {
        case "TryBt":
            if (Maindirector.getSpan() <= 0f || Maindirector.getCyclespan() <= 0)
            {
                //defolt設定
                Maindirector.setSpan(1.5f);
                Maindirector.setCyclespan(5);
                AdMob.bannerView.Hide();
            }
            SceneManager.LoadScene("countdwon");
            break;

        case "DataBt":
            SceneManager.LoadScene("histry");
            AdMob.bannerView.Show();
            break;

        case "OptionBt":
            SceneManager.LoadScene("optionscene");
            AdMob.bannerView.Show();
            break;

        case "exitBt":
            Application.Quit();
            AdMob.bannerView.Destroy();
            break;
        }
    }
Example #2
0
    private void Start()
    {
        this.speed     = Maindirector.getSpan();
        this.cyclespan = Maindirector.getCyclespan();
        int value = 0;

        if (this.speed == 2.0)
        {
            value = 0;
        }
        else if (this.speed == 1.5)
        {
            value = 1;
        }
        else if (this.speed == 1.0)
        {
            value = 2;
        }
        else if (this.speed == 0.5)
        {
            value = 3;
        }
        else
        {
            value = 2;
        }

        int value2 = 0;

        if (this.cyclespan == 5)
        {
            value2 = 0;
        }
        else if (this.cyclespan == 10)
        {
            value2 = 1;
        }
        else if (this.cyclespan == 20)
        {
            value2 = 2;
        }
        else if (this.cyclespan == 30)
        {
            value2 = 3;
        }
        else
        {
            value2 = 0;
        }

        cycletimedd.GetComponentInChildren <Dropdown>().value  = value;
        cyclecountdd.GetComponentInChildren <Dropdown>().value = value2;
    }
Example #3
0
    void Start()
    {
        this.cycle     = 0;
        this.span      = Maindirector.getSpan();
        this.cyclespsn = Maindirector.getCyclespan();
        this.delta     = 0;



        Anser.Clear();
        Anstime.Clear();
        point.Clear();
        key.Clear();
    }