Exemplo n.º 1
0
    public void PoweringUp()
    {
        if (!m_poweringUp)
        {
            m_currentPower = m_aiPower.CurrentPower();
            m_aiPower.PowerExchange(-m_currentPower);
            m_poweringUp = true;
        }

        /*
         * if (!m_poweringUp)
         * {
         *  float percentage = Mathf.FloorToInt(choosePowerSlider.value);
         *  m_currentPower = Mathf.FloorToInt((m_aiPower.totalPower * 0.01f) * percentage);
         *  print(m_aiPower.totalPower * 0.01f);
         *  print(m_currentPower);
         *  if (m_aiPower.CheckPower(m_currentPower) == true)
         *  {
         *      m_poweringUp = true;
         *      m_aiPower.PowerExchange(-m_currentPower);
         *  }
         *  else
         *  {
         *      print("Not enough Power");
         *  }
         *
         * }
         */
    }
Exemplo n.º 2
0
    public void Clicked()
    {
        if (!m_isCompleted)
        {
            isDownloading = !isDownloading;
        }

        m_currentPower    = m_aiPower.CurrentPower();
        hoverTextbox.text = hoverText;
        if (m_isCompleted)
        {
            informationTextbox.text = documentText;
        }
    }
Exemplo n.º 3
0
    public void Clicked()
    {
        m_documentControllerScript.CurrentButton(thisID);

        if (!m_isCompleted)
        {
            isDownloading = !isDownloading;
        }

        m_currentPower    = m_aiPower.CurrentPower();
        hoverTextbox.text = hoverText;

        if (m_isCompleted)
        {
            informationTextbox.text = documentText;
        }
    }