private void Start() { if (Application.platform != RuntimePlatform.WebGLPlayer) { DisplayError("The code is not running on a WebGL build; as such, the Javascript functions will not be recognized."); return; } FirebaseAuth.OnAuthStateChanged(gameObject.name, "DisplayUserInfo", "DisplayInfo"); }
// Start is called before the first frame update void Start() { DontDestroyOnLoad(gameObject); FirebaseAuth.OnAuthStateChanged(gameObject.name, "OnUserSignedIn", "OnUserSignedOut"); FirebaseDatabase.ListenForValueChanged("test", gameObject.name, "OnValueChanged", "ErrorValueChanged"); }