Exemplo n.º 1
0
 public void SelectCharacterBuild(int index)
 {
     if (!hasAuthority)
     {
         return;
     }
     selectedBuild = availableBuilds[index];
     CmdSelectCharacterBuild(selectedBuild.ToString());
 }
Exemplo n.º 2
0
    public override void OnStartAuthority()
    {
        build = SavedDeck.LoadFromString(buildJson);
        var byType = build.cards.GroupBy(x => x).ToDictionary(x => x.Key, x => x.Count());

        foreach (var kvp in byType)
        {
            RegisterPrefab(kvp.Key.spellPrefab, kvp.Value);
        }
        this.buildJson = build.ToString();
        CmdAvatarSpawned();
    }