Inheritance: System.Object
Example #1
0
    static SocialManager CreateInstance()
    {
        SocialManager manger = new SocialManager();

        manger.Init();
        return(manger);
    }
Example #2
0
        private async Task DoDeleteAllContactsAsync()
        {
            this._deleting = true;
            try
            {
                Stopwatch sw = Stopwatch.StartNew();
                await(await ContactStore.CreateOrOpenAsync()).DeleteAsync();
                await SocialManager.DeprovisionAsync();

                SavedContacts savedList = await this.GetSavedList();

                DateTime dateTime = DateTime.MinValue;
                savedList.SyncedDate = dateTime;
                savedList.SavedUsers.Clear();
                await this.EnsurePersistSavedContactsAsync();

                sw.Stop();
                sw = (Stopwatch)null;
            }
            catch (Exception ex)
            {
                Logger.Instance.Error("ContactsManager failed to delete all contacts", ex);
            }
            finally
            {
                this._deleting = false;
            }
        }
	//private static AndroidSaveSystem m_saveSystem;


	void Awake ()
	{
		Instance = this;
		//m_saveSystem = AndroidSaveSystem.Instance;

		DontDestroyOnLoad (this);
	}
Example #4
0
 private void Awake()
 {
     socialManager = GetComponent <SocialManager>();
     rb2d          = GetComponent <Rigidbody2D>();
     animator      = GetComponentInChildren <Animator>();
     behaviour     = Behaviour.WANDERING;
 }
Example #5
0
        private async Task DoDeleteAllContactsAsync()
        {
            this._deleting = true;
            try
            {
                Stopwatch stopwatch = Stopwatch.StartNew();
                await(await ContactStore.CreateOrOpenAsync()).DeleteAsync();
                await SocialManager.DeprovisionAsync();

                SavedContacts arg_1E1_0 = await this.GetSavedList();

                arg_1E1_0.SyncedDate = DateTime.MinValue;
                arg_1E1_0.SavedUsers.Clear();
                await this.EnsurePersistSavedContactsAsync();

                stopwatch.Stop();
                stopwatch = null;
            }
            catch (Exception var_4_272)
            {
                Logger.Instance.Error("ContactsManager failed to delete all contacts", var_4_272);
            }
            finally
            {
                int num = 0;
                if (num < 0)
                {
                    this._deleting = false;
                }
            }
        }
Example #6
0
    void Awake()
    {
        _levelGuide = this.gameObject.GetComponent <LevelGuideModel>();
        _iapMgr     = this.gameObject.GetComponent <IAPMgr>();
        _socialMgr  = this.gameObject.GetComponent <SocialManager>();
        _adsMgr     = this.gameObject.GetComponent <AdsManager>();

        // Init template data
        TemplateMgr.Instance.Init();
        // Init Localize data
        LocalizeMgr.Instance.Init();
        // Init finite state machine
        InitFiniteStateMachine();
        // Init level list;
        InitLevelList();
        // Init player prefs
        LoadPlayerPrefs();
        // Init Localization
        InitLocalization();
        // Init abbreviation
        InitAbbrHash();
        // Init IAP
        _iapMgr.Init();

        currentPlayedLevel = 0;
    }
Example #7
0
 /// <summary>
 /// Constructs a new object.
 /// </summary>
 /// <param name="channel"></param>
 public Player(IChannel channel)
 {
     this.channel      = channel;
     interfaceManager  = new InterfaceManager(this);
     socialManager     = new SocialManager(this);
     appearanceManager = new AppearanceManager(this);
 }
Example #8
0
        public virtual object Praise(HttpContext context)
        {
            YZRequest request   = new YZRequest(context);
            int       messageid = request.GetInt32("messageid");
            string    uid       = YZAuthHelper.LoginUserAccount;

            using (IYZDbProvider provider = YZDbProviderManager.DefaultProvider)
            {
                using (IDbConnection cn = provider.OpenConnection())
                {
                    if (SocialManager.HasVoted(provider, cn, messageid, uid))
                    {
                        SocialManager.DeleteVote(provider, cn, messageid, uid);
                    }
                    else
                    {
                        YZMessageVote vote = new YZMessageVote();
                        vote.messageid = messageid;
                        vote.uid       = uid;
                        vote.date      = DateTime.Today;

                        SocialManager.Insert(provider, cn, vote);
                    }

                    return(new {
                        Praised = SocialManager.GetVotePraisedCount(provider, cn, messageid)
                    });
                }
            }
        }
Example #9
0
        public static void Initialise()
        {
            new Thread(() =>
            {
                var sw          = new Stopwatch();
                double lastTick = 0d;

                while (true)
                {
                    sw.Restart();

                    NetworkManager.Update(lastTick);
                    SocialManager.Update(lastTick);
                    MapManager.Update();

                    Thread.Sleep(1);
                    lastTick = (double)sw.ElapsedTicks / Stopwatch.Frequency;

                    #if DEBUG
                    Console.Title = $"{WorldServer.Title} (Update Time: {lastTick})";
                    #endif
                }
            })
            {
                IsBackground = true
            }.Start();
        }
Example #10
0
    public void ScoreCalculation()
    {
        // 플레이어 스코어값 가져오기
        score = GameManager.SingleTon.GetScore();

        // 게임매니저 최대이동거리 값 가져오기
        float distance = GameManager.SingleTon.GetDistance();

        // 저장된 거리값과 비교 - 크면 새로운 값 저장
        if (DATA.getData().MAXDISTANCE < distance)
        {
            DATA.getData().MAXDISTANCE = (int)distance;
            SocialManager.AchievementsCheck(distance);
        }

        // 저장된 스코어 비교 - 크면 새로운 값 저장
        if (DATA.getData().BESTSCORE < score)
        {
            DATA.getData().BESTSCORE = score;
        }

        // 스코어의 10% 돈으로 저장
        DATA.getData().MONEY += (score / 10);

        StartCoroutine(ScoreAnimation());
    }
 void Awake()
 {
     if (instance == null)
         instance = this;
     else
         Destroy(gameObject);
 }
Example #12
0
        public async Task <ActionResult> BlockedUsers(BlockedUsersViewModel model)
        {
            if (!(await Authorized()))
            {
                return(AccountLogin());
            }

            if (model.UnblockUserId == null)
            {
                AddError("No user was selected.");
                return(View(model));
            }
            else
            {
                var result = await SocialManager.UnblockUser(UserToken, model.UnblockUserId);

                if (result)
                {
                    return(SuccessView("User Unblocked successfully"));
                }
                else
                {
                    return(ErrorView());
                }
            }
        }
Example #13
0
 // Use this for initialization
 void Start()
 {
     if (Instance == null)
     {
         Instance = this;
     }
 }
Example #14
0
        private async Task <bool> ProcessSingleDashboardRequest(FeedOperationDetails fod)
        {
            BackendResult <WallData, ResultCode> wall = await WallService.Current.GetWall(RemoteIdHelper.GetItemIdByRemoteId(fod.OwnerRemoteId), 0, 1, "owner");

            if (wall.ResultCode == ResultCode.Succeeded && wall.ResultData.wall.Count > 0)
            {
                WallPost wallPost = wall.ResultData.wall[0];
                FeedItem feedItem = this.CreateFeedItem(wallPost, wall.ResultData.groups, wall.ResultData.profiles, false);
                if (feedItem != null)
                {
                    DashboardItem dashboardItem = await SocialManager.OpenContactDashboardAsync(fod);

                    dashboardItem.DefaultTarget = feedItem.DefaultTarget;
                    dashboardItem.Timestamp     = new DateTimeOffset(ExtensionsBase.UnixTimeStampToDateTime((double)wallPost.date, true));
                    if (!string.IsNullOrEmpty(feedItem.PrimaryContent.Title) || !string.IsNullOrEmpty(feedItem.PrimaryContent.Message))
                    {
                        dashboardItem.Content.Title   = feedItem.PrimaryContent.Title;
                        dashboardItem.Content.Message = feedItem.PrimaryContent.Message;
                    }
                    else
                    {
                        dashboardItem.Content.Title   = feedItem.SecondaryContent.Title;
                        dashboardItem.Content.Message = feedItem.SecondaryContent.Message;
                    }
                    dashboardItem.Content.Target = feedItem.PrimaryContent.Target;
                    await dashboardItem.SaveAsync();

                    return(true);
                }
                wallPost = null;
                feedItem = null;
            }
            return(false);
        }
Example #15
0
 void Update()
 {
     if (isTouched())
     {
         SocialManager.ShowLeaderboardUI();
     }
 }
Example #16
0
        public async Task MarkFeedAsStale(long ownerId)
        {
            if (ownerId == 0L)
            {
                ownerId = AppGlobalStateManager.Current.LoggedInUserId;
            }
            string remoteId = RemoteIdHelper.GenerateUniqueRemoteId(ownerId.ToString(), RemoteIdHelper.RemoteIdItemType.UserOrGroup);

            try
            {
                await SocialManager.MarkFeedAsStaleAsync(remoteId, FeedType.Contact);
            }
            catch
            {
            }
            try
            {
                await SocialManager.MarkFeedAsStaleAsync(remoteId, FeedType.Dashboard);
            }
            catch
            {
            }
            try
            {
                await SocialManager.MarkFeedAsStaleAsync(remoteId, FeedType.Home);
            }
            catch
            {
            }
        }
Example #17
0
 // Update is called once per frame
 void Update()
 {
     if (score >= 1000)
     {
                     #if UNITY_ANDROID
         SocialManager.UnlockAchievement("CgkIs6X734cSEAIQBQ");
                     #endif
     }
     else if (score >= 250)
     {
                     #if UNITY_ANDROID
         SocialManager.UnlockAchievement("CgkIs6X734cSEAIQBA");
                     #endif
     }
     else if (score >= 100)
     {
                     #if UNITY_ANDROID
         SocialManager.UnlockAchievement("CgkIs6X734cSEAIQAw");
                     #endif
     }
     else if (score >= 10)
     {
                     #if UNITY_ANDROID
         SocialManager.UnlockAchievement("CgkIs6X734cSEAIQAg");
                     #endif
     }
 }
Example #18
0
        private static void Main()
        {
            Directory.SetCurrentDirectory(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location));

            Console.Title = Title;
            log.Info("Initialising...");

            ConfigurationManager <WorldServerConfiguration> .Initialise("WorldServer.json");

            DatabaseManager.Initialise(ConfigurationManager <WorldServerConfiguration> .Config.Database);

            GameTableManager.Initialise();
            MapManager.Initialise();
            SearchManager.Initialise();
            EntityManager.Initialise();
            EntityCommandManager.Initialise();
            GlobalMovementManager.Initialise();

            AssetManager.Initialise();
            GlobalSpellManager.Initialise();
            ServerManager.Initialise();

            ResidenceManager.Initialise();

            // make sure the assigned realm id in the configuration file exists in the database
            RealmId = ConfigurationManager <WorldServerConfiguration> .Config.RealmId;
            if (ServerManager.Servers.All(s => s.Model.Id != RealmId))
            {
                throw new ConfigurationException($"Realm id {RealmId} in configuration file doesn't exist in the database!");
            }

            MessageManager.Initialise();
            SocialManager.Initialise();
            CommandManager.Initialise();
            NetworkManager <WorldSession> .Initialise(ConfigurationManager <WorldServerConfiguration> .Config.Network);

            WorldManager.Initialise(lastTick =>
            {
                NetworkManager <WorldSession> .Update(lastTick);
                MapManager.Update(lastTick);
                ResidenceManager.Update(lastTick);
                BuybackManager.Update(lastTick);
            });

            using (WorldServerEmbeddedWebServer.Initialise())
            {
                log.Info("Ready!");

                while (true)
                {
                    Console.Write(">> ");
                    string line = Console.ReadLine();
                    if (!CommandManager.HandleCommand(new ConsoleCommandContext(), line, false))
                    {
                        Console.WriteLine("Invalid command");
                    }
                }
            }
        }
    void Start()
    {
        m_gp = SocialManager.Instance;

        m_btn_leaderBoard.onClick.Add(new EventDelegate(m_gp, "ShowLeaderBoard"));
        m_btn_Achievem.onClick.Add(new EventDelegate(m_gp, "ShowAchievem"));
        
    }
Example #20
0
    //void LoginInit()
    //{

    //    PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
    //       .EnableSavedGames()
    //       .Build();

    //    PlayGamesPlatform.InitializeInstance(config);
    //    PlayGamesPlatform.DebugLogEnabled = true;
    //    PlayGamesPlatform.Activate();
    //}

    public void UserLoginCheck()
    {
        Debug.LogError("로그인 체크 시작");
        if (!SocialManager.UserLoginCheck())
        {
            SocialManager.UserLogin(UserGameStart);
        }
    }
Example #21
0
        private void OnPlayerDie()
        {
            player.Died -= OnPlayerDie;
            ScoreManager.StopCount();
            SocialManager.SendScore();

            SceneManager.LoadScene((int)GameScenes.End);
        }
        /// <summary>
        /// Agent that runs a scheduled task
        /// </summary>
        /// <param name="task">
        /// The invoked task
        /// </param>
        /// <remarks>
        /// This method is called when a periodic or resource intensive task is invoked
        /// </remarks>
        async protected override void OnInvoke(ScheduledTask task)
        {
            Logger.Log("Agent", "- - - - - - - - - - - - -");
            Logger.Log("Agent", "Agent invoked -> " + task.Name);

            this.contactBindingManager = await ContactBindings.GetAppContactBindingManagerAsync();

            // Use the name of the task to differentiate between the ExtensilityTaskAgent
            // and the ScheduledTaskAgent
            if (task.Name == "ExtensibilityTaskAgent")
            {
                List <Task> inprogressOperations = new List <Task>();

                OperationQueue operationQueue = await SocialManager.GetOperationQueueAsync();

                ISocialOperation socialOperation = await operationQueue.GetNextOperationAsync();

                while (null != socialOperation)
                {
                    Logger.Log("Agent", "Dequeued an operation of type " + socialOperation.Type.ToString());

                    try
                    {
                        switch (socialOperation.Type)
                        {
                        case SocialOperationType.DownloadRichConnectData:
                            await ProcessOperationAsync(socialOperation as DownloadRichConnectDataOperation);

                            break;

                        default:
                            // This should never happen
                            HandleUnknownOperation(socialOperation);
                            break;
                        }

                        // The agent can only use up to 20 MB
                        // Logging the memory usage information for debugging purposes
                        Logger.Log("Agent", string.Format("Completed operation {0}, memusage: {1}kb/{2}kb",
                                                          socialOperation.ToString(),
                                                          (int)((long)DeviceExtendedProperties.GetValue("ApplicationCurrentMemoryUsage")) / 1024,
                                                          (int)((long)DeviceExtendedProperties.GetValue("ApplicationPeakMemoryUsage")) / 1024));


                        // This can block for up to 1 minute. Don't expect to run instantly every time.
                        socialOperation = await operationQueue.GetNextOperationAsync();
                    }
                    catch (Exception e)
                    {
                        Helpers.HandleException(e);
                    }
                }

                Logger.Log("Agent", "No more operations in the queue");
            }

            NotifyComplete();
        }
Example #23
0
 /*
  * Unlock the achievement for getting game over and then load the
  * game over screen
  */
 void GameOver()
 {
     #if UNITY_ANDROID
     SocialManager.UnlockAchievement("CgkI-uuXy7ESEAIQAg");
     #elif UNITY_IPHONE
     SocialManager.UnlockAchievement("CgkI_uuXy7ESEAIQAg");
     #endif
     Application.LoadLevel("game_over");
 }
Example #24
0
        private void OnApplicationPause(bool pauseStatus)
        {
            if (pauseStatus)
            {
                SocialManager.CompleteAchievement(GooglePlayIds.achievement_panic_button);

                OnPlayerDie();
            }
        }
Example #25
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         #if UNITY_ANDROID
         if (CBBinding.onBackPressed())
         {
             return;
         }
         else
         {
             Application.Quit();
         }
         #else
         Application.Quit();
         #endif
     }
     if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         if (Time.frameCount % 30 == 0)
         {
             System.GC.Collect();
         }
     }
     if (Score.TotalScore >= 1000)
     {
         #if UNITY_ANDROID
         SocialManager.UnlockAchievement("CgkIz-zNrP8bEAIQBQ");
                     #elif UNITY_IPHONE
         SocialManager.UnlockAchievement("CgkI_uuXy7ESEAIQBg");
         #endif
     }
     else if (Score.TotalScore >= 100)
     {
         #if UNITY_ANDROID
         SocialManager.UnlockAchievement("CgkIz-zNrP8bEAIQBA");
         #elif UNITY_IPHONE
         SocialManager.UnlockAchievement("CgkI_uuXy7ESEAIQBQ");
         #endif
     }
     else if (Score.TotalScore >= 50)
     {
         #if UNITY_ANDROID
         SocialManager.UnlockAchievement("CgkIz-zNrP8bEAIQAw");
                     #elif UNITY_IPHONE
         SocialManager.UnlockAchievement("CgkI_uuXy7ESEAIQBA");
         #endif
     }
     else if (Score.TotalScore >= 1)
     {
         #if UNITY_ANDROID
         SocialManager.UnlockAchievement("CgkIz-zNrP8bEAIQAg");
                     #elif UNITY_IPHONE
         SocialManager.UnlockAchievement("CgkI_uuXy7ESEAIQAw");
         #endif
     }
 }
Example #26
0
    private void shareClicked()
    {
        // NOTE: If the platform doesn't support multiple share types at once, then data will take priority over text.
        var data = ReignLogo.texture.EncodeToPNG();

        SocialManager.Share(data, "ReignSocialImage", "Demo Text", "Reign Demo", "Reign Demo Desc", SocialShareDataTypes.Image_PNG);

        // NOTE: If you want to share a screen shot you can use the helper method below
        //ReignServices.CaptureScreenShot(captureScreenShotCallback);
    }
Example #27
0
        /// <summary>
        /// Decline all pending social invites of a type, if no type is specified all invites will be declined.
        /// </summary>
        public void DeclineSocialInvites(SocialType type = SocialType.None)
        {
            IEnumerable <SocialInviteRequest> invites = type != SocialType.None ? socialInviteLookup.Where(s => s.Type == type) : socialInviteLookup;

            foreach (SocialInviteRequest inviteRequest in invites)
            {
                SocialBase socialEntity = SocialManager.FindSocialEntity <SocialBase>(inviteRequest.Type, inviteRequest.EntityId);
                socialEntity?.InviteResponse(this, 0);
            }
        }
Example #28
0
    public void StartLoadingData(SocialManager in_sm)
    {
        _sm = in_sm;

        m_saveName = GetComponent <ItemManager> ().PlayerprefKey;
        //if (!PlayerPrefs.HasKey ("JustInstalled"))
        {
            print("We are loading data form cloud");
            LoadFromCloud();
        }
    }
Example #29
0
    int CalculateHighScore(int score)
    {
        int PreviousHighScore = PlayerPrefs.GetInt("high_score", 0);

        if (score > PreviousHighScore)
        {
            PlayerPrefs.SetInt("high_score", score);
            SocialManager.PostToLeaderboard((int)score);
        }
        return(PlayerPrefs.GetInt("high_score", 0));
    }
Example #30
0
    private string gameHashtag;                                         // Hash tag format of game name

    void Awake()
    {
        // Check if there are instance conflicts, if so, destroy other instances
        if (Instance != null && Instance != this)
        {
            Destroy(gameObject);
        }
        // Save singleton instance
        Instance = this;
        // Don't destroy between scenes
        DontDestroyOnLoad(gameObject);
    }
Example #31
0
        public static void HandleSocialInviteResponse(WorldSession session, ClientSocialInviteResponse socialInviteResponse)
        {
            SocialInviteRequest inviteRequest = session.Player.FindSocialInvite(socialInviteResponse.CharacterId, socialInviteResponse.SocialType);

            if (inviteRequest == null)
            {
                throw new SocialInviteStateException($"Character {session.Player.Character.Id} doesnt't have a pending {socialInviteResponse.SocialType} invite!");
            }

            SocialBase socialEntity = SocialManager.FindSocialEntity <SocialBase>(socialInviteResponse.SocialType, inviteRequest.EntityId);

            socialEntity?.InviteResponse(session.Player, socialInviteResponse.Result);
        }
Example #32
0
        protected static bool LoadSocializingActionAvailability(BooterHelper.DataBootFile actionAvailability)
        {
            if (actionAvailability.GetTable("ActiveTopic") == null)
            {
                BooterLogger.AddError(actionAvailability + ": No ActiveTopic");
                return(false);
            }

            SocialManager.ParseStcActionAvailability(actionAvailability.Data);
            SocialManager.ParseActiveTopic(actionAvailability.Data);

            return(true);
        }
Example #33
0
    void Start()
    {
        sm = FindObjectOfType <SocialManager>();
        sm.Initialize();

        if (!Game.isReady)
        {
            loginPanel.SetActive(true);
            mainMenu.SetActive(false);
        }

        DeactivatePanels();
    }
Example #34
0
 public static SocialManager GetInstance()
 {
     if (instance == null)
     {
         lock (_lock)
         {
             if (instance == null)
             {
                 instance = new SocialManager();
             }
         }
     }
     return instance;
 }
Example #35
0
    void Awake()
    {
        if (!mInstance)
            mInstance = this;
        else
        {
            Destroy(this.gameObject);
            return;
        }

        DontDestroyOnLoad(this.gameObject);

        loginManager = GetComponent<LoginManager>();
        userData = GetComponent<UserData>();
        ranking = GetComponent<Ranking>();
           // userData.Init();
    }
Example #36
0
    void Awake()
    {
        if (!mInstance)
            mInstance = this;
        else
        {
            Destroy(this.gameObject);
            return;
        }

        DontDestroyOnLoad(this.gameObject);

        loginManager = GetComponent<LoginManager>();
        facebookFriends = GetComponent<FacebookFriends>();
        userData = GetComponent<UserData>();
        userHiscore = GetComponent<UserHiscore>();
        ranking = GetComponent<Ranking>();
        challengesManager = GetComponent<ChallengersManager>();
        challengeData = GetComponent<ChallengeData>();
        userData.Init();
    }
Example #37
0
	public void Start()
	{	
		guiManager = GUIManager.instance;
        socialManager = SocialManager.instance;
        missionManager = MissionManager.instance;
		staticData = StaticData.instance;
		
		score = 0;
		levelCoins = 0;
		collisions = 0;
		totalCoins = PlayerPrefs.GetInt("Coins", 0);
		
		currentPowerupLevel = new int[(int)PowerUpTypes.None];
		for (int i = 0; i < (int)PowerUpTypes.None; ++i) {
            currentPowerupLevel[i] = PlayerPrefs.GetInt(string.Format("PowerUp{0}", i), 0);
            if (currentPowerupLevel[i] == 0 && GameManager.instance.enableAllPowerUps) {
                currentPowerupLevel[i] = 1;
            }
        }

        // first character is always available
        purchaseCharacter(0);
	}
Example #38
0
    // Use this for initialization
    void Start()
    {
        sfxManager = GameObject.Find("SfxManager").GetComponent<SfxManager>();
        socialManager = GameObject.Find("SocialManager").GetComponent<SocialManager>();
        gameMode = GameObject.Find("ModeManager").GetComponent<ModeManager>().getSelectedMode();
        savingPanel.SetActive(false);
        timerHolder.SetActive(false);
        tempoEndPanel.SetActive(false);

        if (gameMode.Equals(ModeManager.GameMode.CLASSIC))
        {
            bool migrated = PlayerPrefs.GetInt("classicTotalScoreSet", 0) == 1;
            if (migrated)
            {
                totalScore = PlayerPrefs.GetInt("classicTotalScore", 0);
            }
            else
            {
                totalScore = PlayerPrefs.GetInt("totalScore", 0);
                PlayerPrefs.SetInt("classicTotalScore", totalScore);

                int highscore = PlayerPrefs.GetInt("highscore", 0);
                PlayerPrefs.SetInt("classicHighscore", highscore);

                PlayerPrefs.SetInt("classicTotalScoreSet", 1);
            }
        }
        else if (gameMode.Equals(ModeManager.GameMode.TEMPO))
        {
            totalScore = PlayerPrefs.GetInt("tempoTotalScore", 0);
        }
        else if (gameMode.Equals(ModeManager.GameMode.WILD))
        {
            totalScore = PlayerPrefs.GetInt("wildTotalScore", 0);
        }

        showTutorial = PlayerPrefs.GetInt("showTutorial", 1) == 1;
        tutorialHighlights.SetActive(false);
        tutorialEnd.SetActive(false);

        if (!showTutorial)
        {
            tutorialPanel.SetActive(false);
            StartGame();
        }
    }
Example #39
0
 static SocialManager CreateInstance()
 {
     SocialManager manger = new SocialManager();
     manger.Init();
     return manger;
 }
Example #40
0
 void Awake()
 {
     instance = this;
 }
Example #41
0
 void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(this.gameObject);
         return;
     }
     else
     {
         instance = this;
     }
     DontDestroyOnLoad(this.gameObject);
 }