コード例 #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);
 }
コード例 #2
0
ファイル: MainMenu.cs プロジェクト: Huubertus14/Echo
    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();
    }
コード例 #3
0
 public void GiveValues(SubBaseSettings _base, SubEnineSettings _engine)
 {
     accelerationSpeed = _engine.acceleration;
     maxSpeed          = _engine.maxVelocity;
     waterResistence   = _base.resistence;
 }