コード例 #1
0
    public void clicker()
    {
        points = score.GetComponent <Points>();
        if (points.score >= 10)
        {
            Clicker     += 1;
            spaceclicker = player.GetComponent <Spaceclicker>();


            points.score -= 10;
        }
    }
コード例 #2
0
    public void Centuplelicker()
    {
        points = score.GetComponent <Points>();
        if (points.score >= 2500)
        {
            CentupleClicker         += 1;
            spaceclicker             = player.GetComponent <Spaceclicker>();
            spaceclicker.scoreValue += 100;

            points.score -= 2500;
        }
    }
コード例 #3
0
    public void hundredxclicker()
    {
        points = score.GetComponent <Points>();
        if (points.score >= 250)
        {
            HundredXClicker += 1;
            spaceclicker     = player.GetComponent <Spaceclicker>();


            points.score -= 250;
        }
    }
コード例 #4
0
    public void doubleclicker() //Nedan är funtioner för alla upgrades
    {
        points = score.GetComponent <Points>();
        if (points.score >= 100)
        {
            doubleClicker           += 1;
            spaceclicker             = player.GetComponent <Spaceclicker>();
            spaceclicker.scoreValue += 1;

            points.score -= 100;
        }
    }
コード例 #5
0
    public void tenxclicker()
    {
        points = score.GetComponent <Points>();
        if (points.score >= 50)
        {
            TenXClicker += 1;
            spaceclicker = player.GetComponent <Spaceclicker>();


            points.score -= 50;
        }
    }