//-------------------------------------- // INITIALIZE //-------------------------------------- void Awake() { instance = this; GameCenterManager.OnAuthFinished += OnAuthFinished; GameCenterManager.init (); b = gameObject.AddComponent<ConnectionButton> (); b.enabled = false; d = gameObject.AddComponent<DisconnectButton> (); d.enabled = false; m = gameObject.GetComponent<ClickManager> (); m.enabled = false; GameCenterMultiplayer.instance.addEventListener (GameCenterMultiplayer.PLAYER_DISCONNECTED, OnGCPlayerDisconnected); GameCenterMultiplayer.OnMatchStarted += OnGCMatchStart; }
//-------------------------------------- // INITIALIZE //-------------------------------------- void Awake() { instance = this; GameCenterManager.dispatcher.addEventListener (GameCenterManager.GAME_CENTER_PLAYER_AUTHENTICATED, OnPlayerAuth); GameCenterManager.init (); b = gameObject.AddComponent<ConectionButton> (); b.enabled = false; d = gameObject.AddComponent<DisconnectButton> (); d.enabled = false; m = gameObject.GetComponent<ClickManager> (); m.enabled = false; GameCenterMultiplayer.instance.addEventListener (GameCenterMultiplayer.PLAYER_DISCONNECTED, OnGCPlayerDisconnected); GameCenterMultiplayer.instance.addEventListener (GameCenterMultiplayer.MATCH_STARTED, OnGCMatchStart); }
//-------------------------------------- // INITIALIZE //-------------------------------------- void Awake() { instance = this; GameCenterManager.dispatcher.addEventListener(GameCenterManager.GAME_CENTER_PLAYER_AUTHENTICATED, OnPlayerAuth); GameCenterManager.init(); b = gameObject.AddComponent <ConectionButton> (); b.enabled = false; d = gameObject.AddComponent <DisconnectButton> (); d.enabled = false; m = gameObject.GetComponent <ClickManager> (); m.enabled = false; GameCenterMultiplayer.instance.addEventListener(GameCenterMultiplayer.PLAYER_DISCONNECTED, OnGCPlayerDisconnected); GameCenterMultiplayer.instance.addEventListener(GameCenterMultiplayer.MATCH_STARTED, OnGCMatchStart); }
//-------------------------------------- // INITIALIZE //-------------------------------------- void Awake() { instance = this; GameCenterManager.OnAuthFinished += OnAuthFinished; GameCenterManager.Init(); b = gameObject.AddComponent <ConnectionButton> (); b.enabled = false; d = gameObject.AddComponent <DisconnectButton> (); d.enabled = false; m = gameObject.GetComponent <ClickManagerExample> (); m.enabled = false; GameCenter_RTM.ActionPlayerStateChanged += HandleActionPlayerStateChanged;; GameCenter_RTM.ActionMatchStarted += HandleActionMatchStarted; }
//-------------------------------------- // INITIALIZE //-------------------------------------- void Awake() { instance = this; GameCenterManager.OnAuthFinished += OnAuthFinished; GameCenterManager.init(); b = gameObject.AddComponent <ConnectionButton> (); b.enabled = false; d = gameObject.AddComponent <DisconnectButton> (); d.enabled = false; m = gameObject.GetComponent <ClickManager> (); m.enabled = false; GameCenterMultiplayer.instance.addEventListener(GameCenterMultiplayer.PLAYER_DISCONNECTED, OnGCPlayerDisconnected); GameCenterMultiplayer.OnMatchStarted += OnGCMatchStart; }
//-------------------------------------- // INITIALIZE //-------------------------------------- void Awake() { instance = this; GameCenterManager.OnAuthFinished += OnAuthFinished; GameCenterManager.Init (); b = gameObject.AddComponent<ConnectionButton> (); b.enabled = false; d = gameObject.AddComponent<DisconnectButton> (); d.enabled = false; m = gameObject.GetComponent<ClickManager> (); m.enabled = false; GameCenter_RTM.ActionPlayerStateChanged += HandleActionPlayerStateChanged;; GameCenter_RTM.ActionMatchStarted += HandleActionMatchStarted; }