public void TargetEntity()
    {
        ITargetable possibleTarget = objectToTarget.GetComponent <ITargetable>();
        DeckTester  DT             = deckTesterObject.GetComponent <DeckTester>();

        if (possibleTarget != null)
        {
            Debug.Log("New target acquired!");
            CurrentTarget = possibleTarget;
            TargetIcon.SetActive(true);
            DT.Enemy = GameObject.FindGameObjectWithTag("Enemy");
            objectToTarget.Target();
        }
    }
Beispiel #2
0
 void Start()
 {
     DT = GetComponent <DeckTester>();
     EnemyUsedText.gameObject.SetActive(false);
     AS = GetComponent <AudioSource>();
 }