Example #1
0
 private void RPC_SetSubSettings(int _baseSelected, int _engineSelected, int _cannonSelected)
 {
     //Get values and set them
     cannonSettings = SubValues.GetCannonSettings((SubCannonType)_cannonSelected);
     engineSettings = SubValues.GetEngineSettings((SubEngineType)_engineSelected);
     baseSettings   = SubValues.GetBaseSettings((SubBaseType)_baseSelected);
 }
Example #2
0
    public void SetSubSettingsText()
    {
        //LANGTODO:
        //Get values and set them
        SubCannonSettings cannonSettings = SubValues.GetCannonSettings((SubCannonType)GameManager.SP.playerData.subCannonSelected);
        SubEnineSettings  engineSettings = SubValues.GetEngineSettings((SubEngineType)GameManager.SP.playerData.subEngineSelected);
        SubBaseSettings   baseSettings   = SubValues.GetBaseSettings((SubBaseType)GameManager.SP.playerData.subBaseSelected);

        //int selectedSubIndex = (int)GameManager.SP.GetSelectedSub;

        subNameText.text  = "TODO";
        subLevelText.text = "Sub Level: ---";

        subHealthText.text       = "Health: " + baseSettings.health.ToString();
        subAccelerationText.text = "Acceleration: " + engineSettings.acceleration.ToString();
        subSpeedText.text        = "Max Speed: " + engineSettings.maxVelocity.ToString();

        subAttackSpeedText.text  = "Attack Speed: " + cannonSettings.shootInterval.ToString();
        subDamageText.text       = "Attack Damage: " + cannonSettings.baseDamage.ToString();
        subPingIntervalText.text = "Ping Speed: " + baseSettings.pingInterval.ToString();
    }