C# addendum
Here are the C# translations you so richly deserve. Among the very few changes here is the fact that you can't individually change the x/y/z transform.position values in C# as you can in JavaScript—you have to change all three values at the same time by creating a new instance of the Vector3
class.
BombCSharp
using UnityEngine; using System.Collections; public class BombCSharp : MonoBehaviour { public GameObject prefab; void Update () { transform.position = new Vector3(transform.position.x, transform.position.y - 50 * Time.deltaTime, transform.position.z); if(transform.position.y < 0) { Instantiate(prefab, transform.position, Quaternion.identity); transform.position = new Vector3(Random.Range(0,60), 50, -16); } } }
DestroyParticleSystemCSharp
using UnityEngine; using System.Collections; public class DestroyParticleSystemCSharp : MonoBehaviour { void LateUpdate () { if (!particleSystem.IsAlive()) { Destroy (this...