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(); } }
void Start() { DT = GetComponent <DeckTester>(); EnemyUsedText.gameObject.SetActive(false); AS = GetComponent <AudioSource>(); }