コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        if (item != null)
        {
            BlackPower bp = item.GetComponent <BlackPower>();
            SetCustomText(
                bp.currentPower + " BP (BlackPower)",
                bp.maxPower + " BP Power Level",
                (BlackPower.getPower(bp.maxPower) / BlackPower.getPower(BlackPowerType.lowPower)) + " BP Per Second",
                ConnectedModules(item.SurroundingMechanisms())
                );

            currentPower.text     = currentPowerText;
            currentPower2.text    = currentPowerText2;
            currentSpeed.text     = currentSpeedText;
            connectedModules.text = connectedModulesText;
        }
    }