Ejemplo n.º 1
0
        //////////////////////////////////////////////////

        void Start()
        {
            m_ufo           = transform.parent.GetComponent <UFO>();
            m_ufo.HPChange += OnHPChange;
        }
        //////////////////////////////////////////////////

        private void Awake()
        {
            m_healthArea = (CircleCollider2D)GameObject.FindWithTag("Health").collider2D;
            m_enemyArea  = (CircleCollider2D)GameObject.FindWithTag("Enemy").collider2D;
            m_ufo        = transform.parent.GetComponent <UFO>();
        }