public void EquipWorker(int _stationIndex) { PlayerController _player = FindObjectOfType <PlayerController>(); if (editorWorkerComponents[_stationIndex].assignedWorker != null) { _player.AddWorker(vehicle.Crew[_stationIndex]); _player.RemoveWorker(editorWorkerComponents[_stationIndex].assignedWorker); } vehicle.AssignWorker(_stationIndex, editorWorkerComponents[_stationIndex].assignedWorker); }
public void AssignWorker(VehicleClass _vehicle) { _vehicle.AssignWorker(station, assignedWorker); }