public void BuildDrone(Drone.Type type) { Drone drone = new Drone(Drone.GetDroneName(), type); ShipList.Add(drone); GameObject droneObject = Instantiate(dronePrefab); Vector3 BuildLocation = um.currentlySelectedGO.transform.position; BuildLocation.y += 1; droneObject.transform.position = BuildLocation; droneObject.transform.SetParent(this.transform); ShipToObjectMap.Add(drone, droneObject); }
public Drone(string Name, Drone.Type Type) : base(Name) { type = Type; }