Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- [System.Serializable]
- public class StormTrooperConfigList : BotClassConfigList
- {
- [Header("Реактор")]
- public List<ModulReactorConfig> ReactorConfig;
- [Header("Ходовая")]
- public List<ModulPelvicConfig> PelvicConfig;
- [Header("Башня")]
- public List<ModulBodyConfig> BodyConfig;
- [Header("Оптика")]
- public List<ModulOpticConfig> OpticConfig;
- [Header("Радар")]
- public List<ModulRadarConfig> RadarConfig;
- [Header("Контроллер вращения Орудия левый")]
- public List<ModulGunControllerConfig> GunLControllerConfig;
- [Header("Контроллер вращения Орудия правый")]
- public List<ModulGunControllerConfig> GunRControllerConfig;
- [Header("Орудие правое")]
- public List<ModulGunConfig> GunRConfig;
- [Header("Орудие левое")]
- public List<ModulGunConfig> GunLConfig;
- [Header("Контроллер вращения ПРУ левый")]
- public List<ModulGunControllerConfig> LauncherLControllerConfig;
- [Header("Контроллер вращения ПРУ правый")]
- public List<ModulGunControllerConfig> LauncherRControllerConfig;
- [Header("ПРУ правое")]
- public List<ModulLauncherConfig> LauncherRConfig;
- [Header("ПРУ левое")]
- public List<ModulLauncherConfig> LauncherLConfig;
- public override StormTrooperConfigList GetStormTrooperConfig()
- {
- return this;
- }
- public override ModulPelvicConfig GetPelvicConfig(int index, ModulType type)
- {
- return PelvicConfig[index];
- }
- public override ModulBodyConfig GetBodyConfig(int index, ModulType type)
- {
- return BodyConfig[index];
- }
- public override ModulReactorConfig GetReactorConfig(int index, ModulType type)
- {
- Debug.Log("GetReactorConfig " + this);
- return ReactorConfig[index];
- }
- public override ModulGunConfig GetGunConfig(int index, ModulType type)
- {
- if (type == ModulType.LGun)
- {
- return GunLConfig[index];
- }
- if (type == ModulType.RGun)
- {
- return GunRConfig[index];
- }
- return null;
- }
- public override ModulGunControllerConfig GetGunControllerConfig(int index, ModulType type)
- {
- if (type == ModulType.LGunController)
- {
- return GunLControllerConfig[index];
- }
- if (type == ModulType.RGunController)
- {
- return GunRControllerConfig[index];
- }
- if (type == ModulType.LLauncherController)
- {
- return LauncherLControllerConfig[index];
- }
- if (type == ModulType.RLauncherController)
- {
- return LauncherRControllerConfig[index];
- }
- return null;
- }
- public override ModulLauncherConfig GetLauncherConfig(int index, ModulType type)
- {
- if (type == ModulType.LLauncher)
- {
- return LauncherLConfig[index];
- }
- if (type == ModulType.RLauncher)
- {
- return LauncherRConfig[index];
- }
- return null;
- }
- public override ModulOpticConfig GetOpticConfig(int index, ModulType type)
- {
- return OpticConfig[index];
- }
- public override ModulRadarConfig GetRadarConfig(int index, ModulType type)
- {
- return RadarConfig[index];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement