public void StartDeveloping(string Name) { CurrentDevelopingProduct = new DevelopingProduct(); CurrentDevelopingProduct.Name = Name; CurrentDevelopingProduct.CopyObjectInfo(resultObject); CurrentDevelopingProduct.CompletedPoint = 0; CurrentDevelopingProduct.StartTime = TimeManagerCall.TimeValue; resultObject = new ResultObject(); }
public void EndDeveloping() { if (CurrentDevelopingProduct.CompletedPoint > CurrentDevelopingProduct.ObjectInfo.RequiredPoint) { CurrentDevelopingProduct.ObjectInfo.Attractiveness.TotalPoint += CurrentDevelopingProduct.ObjectInfo.Attractiveness.PerfectionPoint; GoodsRecipeCall.MakeCustomRecipe(CurrentDevelopingProduct, CompanyValueCall.CompanyName); } CurrentDevelopingProduct = null; }