The code below is called a preprocessor directive and is only valid if the build is for Android or iOS platform or else the compiler will ignore this code
I could make 2 separate scripts, 1 for Windows & 1 for Android, but since most of the code is similar instead of repeating myself I can just implement a preprocessor directive. To see what preprocessor directives are in your Unity Project you can go to File/Build Settings/Player Settings/Player/Other Settings/Scripting Define SymbolsThis doesn't list every available preprocessor directive, such as the PLATFORM_ANDROID shown above