I’ve just leant something like
public MonoBehaviour[] script;
I don’t know how can I get component from that “Script” variable, which I already added to game object by using
gameObject.AddComponent(script[1]);
?
if(gameObject.GetComponent<script[1]>().done==true)
This gives error CS1525: Unexpected symbol `)’
I think I can solve this, with some help, please?