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.
|
|
|
|
using System;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace FX
|
|
|
|
|
{
|
|
|
|
|
// Token: 0x0200076A RID: 1898
|
|
|
|
|
public class FX_ch_002010 : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
// Token: 0x0600305F RID: 12383 RVA: 0x00103F84 File Offset: 0x00103F84
|
|
|
|
|
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;
|
|
|
|
|
gameObject.transform.localRotation = this.GenerateObject.transform.localRotation;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Token: 0x040056B5 RID: 22197
|
|
|
|
|
[SerializeField]
|
|
|
|
|
private GameObject GenerateObject;
|
|
|
|
|
|
|
|
|
|
// Token: 0x040056B6 RID: 22198
|
|
|
|
|
[SerializeField]
|
|
|
|
|
private GameObject[] _parent;
|
|
|
|
|
}
|
|
|
|
|
}
|