You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							32 lines
						
					
					
						
							763 B
						
					
					
				
			
		
		
	
	
							32 lines
						
					
					
						
							763 B
						
					
					
				| 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<GameObject>(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;
 | |
| 	}
 | |
| }
 |