Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events not firing #68

Closed
KevDevMan opened this issue May 22, 2023 · 3 comments · Fixed by #69
Closed

Events not firing #68

KevDevMan opened this issue May 22, 2023 · 3 comments · Fixed by #69
Assignees
Labels
bug Something isn't working

Comments

@KevDevMan
Copy link

SDK 1.4.0
Unity 2021.3.23f1

Game of 3 scences
Home scene i have a script behind with the following

NOTE: I was using your singleton patteren (Which was not working, same error) but moved code.

private ITezos _tezos;

void Start()
{
        _tezos = TezosSingleton.Instance;
        _tezos.Wallet.MessageReceiver.AccountConnected += OnAccountConnected;
        _tezos.Wallet.MessageReceiver.AccountDisconnected += OnAccountDisconnected;
}

public void ConnectWallet()
    {
        _tezos.Wallet.Connect();
    }

    private void OnAccountConnected(string account)
    {
        
        if (!string.IsNullOrEmpty(account))
        {
            welcomeText.text = _tezos.Wallet.GetActiveAddress();
        }
    }

When this screen first loads, i am able to connect and disconnect as the MessageReciever events are firing.

When i return to Home scene,
_tezos.Wallet.GetActiveAddress() is set correctly
but none of the MessageReciever events are getting fired

In Chrome DevTools i am seeing this error when i try to "Connect" again. (Temple, opens and i log in etc and confirm but then nothing.)

SendMessage: object UnityBeacon not found!

@m-kus m-kus added the bug Something isn't working label May 22, 2023
@m-kus
Copy link
Collaborator

m-kus commented May 22, 2023

Possibly related #43

@k-karuna
Copy link
Member

@KevDevMan Fix in main branch, you can check out to latest commit to test.

@KevDevMan
Copy link
Author

KevDevMan commented May 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants