コード例 #1
0
    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);
    }
コード例 #2
0
 public void AssignWorker(VehicleClass _vehicle)
 {
     _vehicle.AssignWorker(station, assignedWorker);
 }