예제 #1
0
    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);
    }
예제 #2
0
 public Drone(string Name, Drone.Type Type) : base(Name)
 {
     type = Type;
 }