Way to assign event fields in created at runtime scriptable object (ScriptableObject Architecture)
Currently i have drop table (B) that i create at runtime. This drop table have event field. I am assigning this event field in the place (A) where i am creating this drop table. I am ending up with event assigned in two places in (A) and (B). Is there a way i can only have this event field in drop table (B) ?
class A
public GameEvent event;
...
DropTable tb = ScriptableObject.CreateInstance<DropTable>();
tb.Generate(event);
class DropTable (B)
public GameEvent event;
...
public void Generate(GameEvent eventPassed)){
event = eventPassed;
}
Basically i want to get rid of GameEvent in class (A) and get it somehow with method in Droptable(B)
Your answer
Follow this Question
Related Questions
How do I make a Status Effect system in a turn based combat RPG ? 0 Answers
Unity Events not registering a function due to custom parameters 0 Answers
Help with Unity Events 0 Answers
IPointerEnterHandler calls immediately after IPointerExitHandler 0 Answers
UnityEngine.GameObject' does not contain a definition for `SetSelectedGameObject' 0 Answers