I have been converting an old project from javascript to c-sharp and cannot seem to get the following to work:
In Javascript i had:
var b:Bullet = Instantiate(_bullet,_bulletPoint.transform.position, transform.rotation);
and now in c# i have:
Bullet b = Instantiate(_bullet, _bulletPoint.transform.position, transform.rotation)as Bullet;
but nothing is fired and no errors are displayed in the console. In the inspector i occasionally see it say “deleted gameobject”, could that be my bullet ?
It works perfectly in javascript, but i cannot get it to work in c-sharp