using UnityEngine; using System.Collections.Generic; using System; namespace FORGE3D { [Serializable] public class F3DTurretScriptable : ScriptableObject { public List Turrets = new List(); public List Bases = new List(); public List Swivels = new List(); public string SwivelPrefix = "*SOCKET_SWIVEL_"; public List Heads = new List(); public string HeadPrefix = "*SOCKET_HEAD_"; public List Mounts = new List(); public string MountPrefix = "*SOCKET_MOUNT_"; public List Breeches = new List(); public string BarrelPrefix = "*SOCKET_BARREL_"; public List Barrels = new List(); public int SelectedTurret = 0; public string WeaponSocket = "*SOCKET_WEAPON_"; } [Serializable] public class TurretStructure { public bool NeedLOD = false; public string Name = "Turret"; public GameObject Base; public GameObject Swivel; public string SwivelPrefix = "*SOCKET_SWIVEL_"; public GameObject Head; public string HeadPrefix = "*SOCKET_HEAD_"; public GameObject Mount; public string MountPrefix = "*SOCKET_MOUNT_"; public GameObject Breech; public string BarrelPrefix = "*SOCKET_"; public List WeaponSlotsNames = new List(); public List WeaponSlots = new List(); public List WeaponBreeches = new List(); public List WeaponBarrelSockets = new List(); public List WeaponBarrels = new List(); public bool HasTurretScript; } }