Ejemplo n.º 1
0
 public void ArriveAtPlanet(Planet planet)
 {
     planet.AddFleet(this);
     currentPlanet = planet;
     currentSolarSystem = planet.solarSystem;
     destinationPlanet = null;
     this.transform.position = planet.transform.position;
 }
Ejemplo n.º 2
0
    void TransferFleetToPlanet(Planet planet)
    {
        if (planet.team.id == this.team.id)
            planet.AddFleet(fleetSize);
        else
            planet.RemoveFleet(fleetSize, this.team);

        this.fleetSize = 0;
    }