how can i access script with tag in unity?

Viewed 27
public GameObject Enemy;

void FindOverAll()
   
    {

        GameObject Enemy = GameObject.FindWithTag("Enemy");
    }
   
    void Update()
    {
        if (Player1Script.OverAll > Enemy.OverAll)
    
    }
0 Answers
Related