Exemplo n.º 1
0
 public void Initialize(CompassElement compassElement, string textDirection)
 {
     if (isDirection && textContent)
     {
         textContent.text = textDirection;
     }
 }
Exemplo n.º 2
0
    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();
            }
        }
    }