- Home /
A common method to call any script that is put into a method
Basically what the title says, is there a common method that I can pass into a method field that will allow to put any script reference into it kind like:
Example:
[Serializable] public class DataInfo { public void GetData("Common Method to put any script in", Data) }
and then I pass it to another script:
public class GetDataInfo1 { public DataInfo datainfo;
private void Start()
{
datainfo.GetData(DataScript1);
}
}
and still use it in here, but save this data:
public class GetDataInfo2 { public DataInfo datainfo;
private void Start()
{
datainfo.GetData(DataScript2);
}
} datainfo.GetData(DataScript2) } } }
Your answer
Follow this Question
Related Questions
Storing Constant data in a mobile game 0 Answers
Best way to store NPC data and how to do it? 1 Answer
OnMouseDown instantiates object in different spot 1 Answer
What is Metadata and how do I create it and use it for my games? 1 Answer
My custom function for Updating a data string in an array causes deletion of all other data 0 Answers