public void ManufactureBranches(int count, string avesName) { if (subMapType == AvesDataBase.Instance.GetAvesPreferredTypeByName(avesName)) { float rate = AvesDataBase.Instance.GetProfitRateWhenAvesMatchingTypeByName(name); count = (int)(count * rate); } branch.AddCount(count); branch.gameObject.SetActive(true); }