public void Submit() { if (GeneralManager.CanSubmit) { playerName.interactable = false; btn.interactable = false; RunResult result = GeneralManager.GetSubmiss(); if (result.birdingScore > 0) { gateway.PostResult( "birding", playerName.text, result.birdingScore.ToString(), e => SetOwnPosition("birding", e[0].rank), e => Debug.LogError(e) ); } if (result.birdingSpeed > 0) { gateway.PostResult( "birdingxrunning", playerName.text, result.birdingSpeed.ToString("0.00"), e => SetOwnPosition("birdingxrunning", e[0].rank), e => Debug.LogError(e) ); } gateway.PostResult( "running", playerName.text, result.time.ToString("0.00"), e => SetOwnPosition("running", e[0].rank), e => Debug.LogError(e) ); } }