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.

30 lines
960 B

using System;
using UnityEngine;
namespace FX
{
// Token: 0x02000743 RID: 1859
public class FX_GenerateLine : MonoBehaviour
{
// Token: 0x06002FEE RID: 12270 RVA: 0x00100A58 File Offset: 0x00100A58
private void Start()
{
for (int i = this.ObjNumber - 1; i >= 0; i--)
{
GameObject gameObject = UnityEngine.Object.Instantiate<GameObject>(this.GenerateObject);
gameObject.transform.position = new Vector3(base.gameObject.transform.position.x + this.CoordinateDistance[0] * (float)i, base.gameObject.transform.position.y + this.CoordinateDistance[1] * (float)i, base.gameObject.transform.position.z + this.CoordinateDistance[2] * (float)i);
gameObject.transform.parent = base.transform;
}
}
// Token: 0x04005581 RID: 21889
public GameObject GenerateObject;
// Token: 0x04005582 RID: 21890
public int ObjNumber = 1;
// Token: 0x04005583 RID: 21891
public Vector3 CoordinateDistance = new Vector3(0f, 0f, 0f);
}
}