コード例 #1
0
    private void LaunchRawHandler(Dictionary <string, object> rawData)
    {
        Launch launch;

        if (Launch.TryParseLaunch(rawData, out launch) == false)
        {
            Debug.LogError("Could not parse launch.");
            return;
        }

        string userId = launch.PlayerInfo.Id;

        launch.PlayerInfo = MergeUser(launch.PlayerInfo);

        if (knownUsers[userId].Avatar != null)
        {
            InitiateLaunch(launch);
        }
        else
        {
            StartCoroutine(LaunchAfterDownloadingAvatar(launch));
        }
    }