I want to create something to store code like an array.
Example code:
public code[] codeArray = { gameobject.SetActive(false),Debug.Log("Hello world"),bool = true; };
private void Start()
{
codeArray[2];
codeArray[0];
codeArray[1];
}
//Output bool = true, gameobject is not active, there is a "Hello world" in the log.
Any amount of help will be appreciated!