Пример #1
0
    // Token: 0x06004CE8 RID: 19688 RVA: 0x0019C064 File Offset: 0x0019A464
    public static void PlayerJoined(string PlayerID)
    {
        GameObject      gameObject      = (GameObject)AssetManagement.Instantiate(Resources.Load("USpeakerPrefab"));
        USpeakOwnerInfo uspeakOwnerInfo = gameObject.AddComponent <USpeakOwnerInfo>();

        uspeakOwnerInfo.Init(new USpeakPlayer
        {
            PlayerID = PlayerID
        });
    }
Пример #2
0
    /// <summary>
    /// Call this when a new player joins
    /// </summary>
    public static void PlayerJoined(string PlayerID)
    {
        GameObject      uspeaker  = (GameObject)Instantiate(Resources.Load("USpeakerPrefab"));
        USpeakOwnerInfo ownerInfo = uspeaker.AddComponent <USpeakOwnerInfo>();

        USpeakPlayer player = new USpeakPlayer();

        player.PlayerID = PlayerID;

        ownerInfo.Init(player);
    }