void FireAOE() { GameObject bulletObject = new GameObject(); tAOE bullet = bulletObject.AddComponent <tAOE>(); bullet.init(m.GetTarget()); bullet.transform.position = new Vector3(targetx, targety, 0); }