C
C#17mo 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
phaseshift17mo ago
#game-dev maybe. Or the unity discord
RukkusBoy
RukkusBoy17mo ago
alr thanks 😄
TheRanger
TheRanger17mo ago
replace .GetComponent<End Game (Script)> with .GetComponent<EndGame>
Accord
Accord17mo 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
More Posts