PacktPublishing / Build-Your-Own-Metaverse-with-Unity

Build Your Own Metaverse with Unity, published by Packt
MIT License
16 stars 3 forks source link

error CS1061: 'Task' does not contain a definition for 'Result' #2

Open XRlabTech opened 3 months ago

davidcantonnadales commented 3 months ago

Hello, can you share with me more info? Thankss

XRlabTech commented 3 months ago

Hi David

I think the post got deleted by mistake. I am using Unity 2022.3.20 on chapter 6 Adding Registration and our users.

I knew getting the following errors ;

Assets\Scripts\SignUpManager.cs(69,36): error CS0029: Cannot implicitly convert type 'Firebase.Auth.AuthResult' to 'Firebase.Auth.FirebaseUser'

Assets\Scripts\SignUpManager.cs(69,41): error CS1061: 'Task' does not contain a definition for 'Result' and no accessible extension method 'Result' accepting a first argument of type 'Task' could be found (are you missing a using directive or an assembly reference?)

Assets\Scripts\SignInManager.cs(56,41): error CS0029: Cannot implicitly convert type 'Firebase.Auth.AuthResult' to 'Firebase.Auth.FirebaseUser'

Assets\Scripts\SignInManager.cs(56,46): error CS1061: 'Task' does not contain a definition for 'Result' and no accessible extension method 'Result' accepting a first argument of type 'Task' could be found (are you missing a using directive or an assembly reference?)

I have tried different solutions I believe it might be a version issue.