can somebody explain what a State is and what this code here does
[CreateAssetMenu(menuName = "Staaaaate")]
public class State : ScriptableObject
{
[TextArea(10, 14)] [SerializeField] string stor5ytext;
[SerializeField] State state;
public string GetStoryText()
{
return stor5ytext;
}
}
is it a scriptable object or does it have to be attached to one
how does naming the “staaaaate” work after i create it in unity
what’s the difference between State and “staaaaaaate”
why is does the information i put into stor5ytext not stay?
did i do it wrong XD i rewatch the episode where he did it and basically copy pasted it and it works now but it doesn’t make sense to me
unfortunately i must sleep so i can work but ill get back to you tomorrow is u reply