using System; using UnityEngine; namespace FX { // Token: 0x02000745 RID: 1861 public class FX_GenerateToParents : MonoBehaviour { // Token: 0x06002FF2 RID: 12274 RVA: 0x00100B60 File Offset: 0x00100B60 private void Start() { if (this._parent.Length > 0) { for (int i = this._parent.Length - 1; i >= 0; i--) { GameObject gameObject = UnityEngine.Object.Instantiate(this.GenerateObject); gameObject.transform.position = this._parent[i].transform.position; gameObject.transform.parent = this._parent[i].transform; } } } // Token: 0x04005585 RID: 21893 [SerializeField] private GameObject GenerateObject; // Token: 0x04005586 RID: 21894 [SerializeField] private GameObject[] _parent; } }