19 lines
467 B
C#
19 lines
467 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
namespace Invector
|
|
{
|
|
public class vSpikeControl : MonoBehaviour
|
|
{
|
|
[HideInInspector]
|
|
public List<Transform> attachColliders;
|
|
|
|
void Start()
|
|
{
|
|
attachColliders = new List<Transform>();
|
|
var objs = GetComponentsInChildren<vSpike>();
|
|
foreach (vSpike obj in objs)
|
|
obj.control = this;
|
|
}
|
|
}
|
|
} |