SocialManager.UpdateButton C# (CSharp) Method

UpdateButton() private method

private UpdateButton ( ) : void
return void
    private void UpdateButton()
    {
        #if (UNITY_IPHONE || UNITY_ANDROID)
        GameObject statusButton = GameObject.Find("Main Camera/BottomRight/socialStatus");
        if (statusButton){
            bool auth = Social.localUser.authenticated;
            statusButton.GetComponent<TextMesh>().text = auth ? "logged in" : "logged out";
            statusButton.gameObject.animation.Play("buttonpress");
        }
        #endif
    }