예제 #1
0
 public void SetItem(List <SeedPacket> item, GUI_SeedExtractor correspondingWindow)
 {
     seedPackets         = item;
     seedExtractorWindow = correspondingWindow;
     itemName.SetValueServer(seedPackets.First().name);
     itemIcon.SetValueServer(seedPackets.First().name);
     itemCount.SetValueServer($"({seedPackets.Count.ToString()})");
     itemBackground.SetValueServer(regularColor);
 }
예제 #2
0
 public void SetItem(SeedPacket seedPacket, GUI_SeedExtractor correspondingWindow)
 {
     seedItem = seedPacket;
     //var seedPacket = seedItem.GetComponent<SeedPacket>();
     seedExtractorWindow = correspondingWindow;
     seedStats.SetValueServer($"{seedPacket.plantData.Potency.ToString().PadLeft(3)} " +
                              $"{seedPacket.plantData.Yield.ToString().PadLeft(3)} " +
                              $"{seedPacket.plantData.GrowthSpeed.ToString().PadLeft(3)} " +
                              $"{seedPacket.plantData.Endurance.ToString().PadLeft(3)} " +
                              $"{seedPacket.plantData.Lifespan.ToString().PadLeft(3)} " +
                              $"{seedPacket.plantData.WeedResistance.ToString().PadLeft(3)} " +
                              $"{seedPacket.plantData.WeedGrowthRate.ToString().PadLeft(3)}");
     itemBackground.SetValueServer(regularColor);
 }