Exemplo n.º 1
0
    public bool InitPlaneDrop(DropTypeENUM dropType)
    {
        ConfigureFlightType(dropType);
        if (SetupFlightPath())
        {
            SpawnPlane();//catch the plane Manager to keep track of the plane further
            return(true);
        }

        return(false);
    }
Exemplo n.º 2
0
    private void ConfigureFlightType(DropTypeENUM dropZoneType)
    {
        switch (dropZoneType)
        {
        case DropTypeENUM.PLAYER:
            acceptableDropZones = playerDropZones;
            planeFlightSpeed    = planeSpeed_PlayerDrop;
            break;

        case DropTypeENUM.SUPPLY:
            acceptableDropZones = supplyDropZones;
            planeFlightSpeed    = planeSpeed_SupplyDrop;
            break;

        default:
            Debug.LogError("ERROR! Default hit");
            Debug.Break();
            break;
        }
    }
Exemplo n.º 3
0
 public bool InitPlaneDrop(DropTypeENUM dropType, GameObject[] incomingCargo)
 {
     planeCargo = incomingCargo;
     return(InitPlaneDrop(dropType));//"boil up"
 }