I need to get an script from a node, that I instantiated.
I tried those solutions:
hex hexScript = newHex as hex;
It returned error that Spatial can't be converted to my hex script.
hex hexScript = (hex)newHex.GetScript();
Basicly my question is: How can I get script of node into code -> I need to change its behavior. It is map for game that has hexagonal tiles and each hex has own script and I'm setting it's properties right from mapGenerate method.