© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
8 replies
~Linc~

Can Someone help me fix this messy code and simplify it.

public List<Slot> FuelSlots = new List<Slot>();
public List<Slot> InputSlots = new List<Slot>();
public List<Slot> OutputSlots = new List<Slot>();


[Header("Furnace Slots")]
public GameObject FuelSlotOne;
public GameObject FuelSlotTwo;
public GameObject InputSlotOne;
public GameObject InputSlotTwo;
public GameObject InputSlotThree;
public GameObject OutputSlotOne;
public GameObject OutputSlotTwo;
public GameObject OutputSlotThree;
private Slot FuelOne;
private Slot FuelTwo;
private Slot InputOne;
private Slot InputTwo;
private Slot InputThree;
private Slot OutputOne;
private Slot OutputTwo;
private Slot OutputThree;




private void Start()
{
FuelOne = FuelSlotOne.GetComponent<Slot>();
FuelTwo = FuelSlotTwo.GetComponent<Slot>();
InputOne = InputSlotOne.GetComponent<Slot>();
InputTwo = InputSlotTwo.GetComponent<Slot>();
InputThree = InputSlotThree.GetComponent<Slot>();
OutputOne = OutputSlotOne.GetComponent<Slot>();
OutputTwo = OutputSlotTwo.GetComponent<Slot>();
OutputThree = OutputSlotThree.GetComponent<Slot>();


}
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

can someone pls help me fix this code its my hw
C#CC# / help
3y ago
Can someone help me fix my code, it doesnt open usercoontrols form porperly
C#CC# / help
15mo ago
can someone help me read and understand this
C#CC# / help
2y ago