Hi Unity Community, or should I say.. Hi Eric...
So I downloaded Prime 31's Game Center plugin. It would great but the hole thing is in C# and I learned JavaScript or as We would say "Unity Script" from tutorials to create games.
Game Center Manager file has an event that is fired when someone logs in
// Fired when a player is logged in
public static event GameCenterEventHandler playerAuthenticated;
Problem I have is that I dont really know what an event is. I would like for it to trigger.. lets say a Debug.Log. But it does not work like a function
public static event GamecenterEventHandler playerAuthenticated(){
Debug.Log("player logged in");
}
What I am trying to do is use this to check if the person logged in or not and make the appropriate buttons available by turning booleans off and on.
↧