kloder-games / godot-gpgs

Godot Module for Google Play Game Services
MIT License
56 stars 16 forks source link

Added network class (isOnline, isWifiConnected, isMobileConnected) #7

Closed cbrhex closed 6 years ago

cbrhex commented 6 years ago

Added network class with methods:

This way you can check internet connection before a sign in happens

func gpgs_sign_in():
    gpgs.init(get_instance_ID())

    if gpgs.isOnline():
        gpgs.signIn()
jlopezcur commented 6 years ago

Thanks @Cyber-host !