示例#1
0
    void CreateFlightFinal(Flight flight, Runway runway)
    {
        flights.Add(flight);

        // need to create method for spawning airplanes if there are different types of airplanes
        flight.SpawnAirplane(runway.GetPositionCenter2(), airplane, airplaneParent);
        flight.AddPassengers();         // adds both incoming and outgoing passengers

        // TEMPORARY needs to be delayed somehow?
        flight.SpawnIncomingPassengers();

        Debug.Log("created flight!");
    }
    void CreateFlightFinal(Flight flight, Runway runway)
    {
        flights.Add(flight);

        // need to create method for spawning airplanes if there are different types of airplanes
        flight.SpawnAirplane(runway.GetPositionCenter2(), airplane, airplaneParent);
        flight.AddPassengers();	// adds both incoming and outgoing passengers

        // TEMPORARY needs to be delayed somehow?
        flight.SpawnIncomingPassengers();

        Debug.Log("created flight!");
    }