public void startSupplyPlane(SupplyAirplane.FlyInfo data) { GameObject lPlane = create(data.startX, data.heightY); if(lPlane) { initPlane(lPlane, data); } }
void initPlane(GameObject pPlane, SupplyAirplane.FlyInfo data) { SupplyAirplane lSupplyAirplane = pPlane.GetComponent<SupplyAirplane>(); lSupplyAirplane.startPlane(data); initSupplyObjectFunc(lSupplyAirplane.supplyBox); }