Topic: Toggle Script in Character Prefab
I would like to turn on/off a script from a character prefab programmatically for particular moves. However, when I try to access the script from battlegui.cs:
player.gameObject.GetComponent<>("abc");
I get an error that the name does not exist in the current context. How could I add the script so it is accessible in battlegui.cs?
Thanks