Can I access two variables with get component, when I only assign 1 variable? That sounds confusing, but see the code it will make sense:
var otherScript = GameObject.Find("SkeletonDamageWGR");
// Stop Damage when Shield Bashed
if (other.gameObject.tag == "Shield")
{
otherScript.GetComponent(WarriorDmgGreen).StopInvokeDmg();
otherScript.GetComponent(WarriorDmgGreen).ToggleSD();
}
OR
var otherScript = GameObject.Find("SkeletonDamageWGR");
var otherScript2 = GameObject.Find("SkeletonDamageWGR");
// Stop Damage when Shield Bashed
if (other.gameObject.tag == "Shield")
{
otherScript.GetComponent(WarriorDmgGreen).StopInvokeDmg();
otherScript2.GetComponent(WarriorDmgGreen).ToggleSD();
}