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); }
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; } }
public bool InitPlaneDrop(DropTypeENUM dropType, GameObject[] incomingCargo) { planeCargo = incomingCargo; return(InitPlaneDrop(dropType));//"boil up" }