C
Join ServerC#
help
i have a variable in one method and want to use it in a different one
Hhaakonsen10/15/2022
if i try make it public it breaks the whole code

Hhaakonsen10/15/2022

Hhaakonsen10/15/2022
originally i made checkP1/2 into other variables but i thought it probably wasnt the easiest way to get it working
Hhaakonsen10/15/2022
i also wanted to get rid of this block at the start

Pphaseshift10/15/2022
Either push the variable into the other method as an argument, or use class field/property
Hhaakonsen10/15/2022
how would i do that
Pphaseshift10/15/2022
You're already doing it with other data
Pphaseshift10/15/2022
Like you pass team1 variable into penalty method
Hhaakonsen10/15/2022
ohh i see
Hhaakonsen10/15/2022
cheers