C
C#2y ago
RukkusBoy

❔ How to stop a script from another script?

Yo, I'm making a projectile for my game design class that I want to make stop a level timer started in another script? The scripts are attached. I'm having issues finding out how to get it to pull the script from the object to be able to stop it.
4 Replies
phaseshift
phaseshift2y ago
#game-dev maybe. Or the unity discord
RukkusBoy
RukkusBoyOP2y ago
alr thanks 😄
TheRanger
TheRanger2y ago
replace .GetComponent<End Game (Script)> with .GetComponent<EndGame>
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server