示例#1
0
    /// <summary>
    /// Checks if there is enough GP available to use this move. If not, hide the item. TO FIX: Only applies to P1 Menu
    /// </summary>
    private void GPMovesAvailable()
    {
        Debug.Log("GP is " + PlayerStats.stats.groove);

        if (PlayerStats.stats.groove < 8)
        {
            Bboy.SetActive(false);
            if (PlayerStats.stats.groove < 4)
            {
                Wild.SetActive(false);
                if (PlayerStats.stats.groove < 3)
                {
                    Kick.SetActive(false);
                    if (PlayerStats.stats.groove < 2)
                    {
                        Charleston.SetActive(false);
                    }
                    else
                    {
                        Charleston.SetActive(true);
                    }
                }
                else
                {
                    Kick.SetActive(true);
                }
            }
            else
            {
                Wild.SetActive(true);
            }
        }
        else
        {
            Bboy.SetActive(true);
        }
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     charleston = GameObject.FindGameObjectWithTag("Charleston");
     script     = charleston.GetComponent <Charleston>();
 }