Esempio n. 1
0
 public void Initialize(CompassElement compassElement, string textDirection)
 {
     if (isDirection && textContent)
     {
         textContent.text = textDirection;
     }
 }
    public void Initialize(CompassElement compassElement, string textDirection)
    {
        if (isDirection && textContent)
        {
            textContent.text = textDirection;
        }
        else
        {
            m_EnemyController = compassElement.transform.GetComponent <EnemyController>();

            if (m_EnemyController)
            {
                m_EnemyController.onDetectedTarget += DetectTarget;
                m_EnemyController.onLostTarget     += LostTarget;

                LostTarget();
            }
        }
    }