I tried to create an object by pressing a button by using the Boo scripting language:
import UnityEngine
class shot (MonoBehaviour):
prefab as Transform
def Start ():
pass
def Update ():
if (Input.GetButtonDown("Jump")):
Bullet = Instantiate(prefab, transform.position, Quaternion.identity)
It compiles and runs but I can’t connect a graphical object in the inspector window.
if the same script is written in Java it will show a little prefab entry below script and I can assign an object.
What is do I miss?
And anyone has some tutorials written in Boo?