C
C#3y 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
phaseshift3y ago
#game-dev maybe. Or the unity discord
RukkusBoy
RukkusBoyOP3y ago
alr thanks 😄
TheRanger
TheRanger3y ago
replace .GetComponent<End Game (Script)> with .GetComponent<EndGame>
Accord
Accord3y 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.

Did you find this page helpful?