using UnityEngine; using System.Collections.Generic; public class SpawnEntity : MonoBehaviour { [Header("Positioning")] [SerializeField] float m_speed = 1.0f; [SerializeField] float m_minY = -0.5f; [SerializeField] float m_maxY = 0.5f; [Header("Scoring")] [SerializeField] int m_points; [SerializeField] bool m_removeOnScoring; List m_renderers = new List(); bool m_wasVisible; bool m_finished = false; protected bool m_active = false; public Bounds RenderBounds { get; set; } void Awake() { GetComponentsInChildren(m_renderers); } void Start() { Bounds bounds = new Bounds(); for(int i=0; i