/// <summary> /// Unload resouce to village. /// </summary> void UnloadResource() { if (team.Equals("Team1")) { if (holded_resource == "G") { Grid_Inspector.CURRENT_GOLD1++; } else if (holded_resource == "F") { Grid_Inspector.CURRENT_WOOD1++; } else if (holded_resource == "S") { Grid_Inspector.CURRENT_STONE1++; } else { Grid_Inspector.CURRENT_BERRIES1++; } } else { if (holded_resource == "G") { Grid_Inspector.CURRENT_GOLD2++; } else if (holded_resource == "F") { Grid_Inspector.CURRENT_WOOD2++; } else if (holded_resource == "S") { Grid_Inspector.CURRENT_STONE2++; } else { Grid_Inspector.CURRENT_BERRIES2++; } } UIMaster.RefreshResources(); holds = false; holded_resource = ""; movingtovillage = false; }