I am using the following code:
var blaster : GameObject = Instantiate(blasterPrefab, GameObject.Find("blasterPoint").transform.position, Quaternion.identity);
// Propells blasted ammunition forward
blaster.rigidbody.AddForce(transform.forward * 2000);
//end fire weapon phase
but the projectile (blaster) does not blast forward since I added "GameObject" as the variable type (needed to do this to allow program to run on iPhone). How do I add the forward momentum to the blasted object when I use the code as I do above?
ScriptableObjects are first class serialized objects. So you have to actually serialize the instance itself. The JsonUtility is quite limited. In the usual serialization system references to ScriptableObjects are serialized as actual references unlike other classes. However JSON doesn't have a concept for references at all.
– Bunny83