So i assign this variable:
public string PotionCarry = "None";
And use it like this in a method here:
public void SetCarryPotion(string Potion)
{
if(PotionCarry == "None")
{
PotionCarry = Potion;
print("Transfer");
}
print(PotionCarry);
}
This method is in the same script, and i have checked that when triggered “Transfer” is printed to the console. These are the only mentions of PotionCarry, so what is happening and how can i fix it?
Thanks!
Edit:
looked through my code in the trigger function calling the setcarrypotion() and it’s because i set the variable (which then would be set as PotionCarry) to none at the start of the function. facepalm
Sorry for being stupid and wasting your time,
Random noob