public TickEvent newTickEvent(float secondsPerTick) { GameObject g = UnityEngine.Object.Instantiate(this.tickEventPrefab); g.transform.SetParent(this.transform); TickEvent te = g.GetComponent <TickEvent>(); te.init(secondsPerTick); return(te); }