This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Avalonia.Controls; | |
using Avalonia.Media.Imaging; | |
using Avalonia.Threading; | |
using Avalonia.VisualTree; | |
using NekoDot.Core; | |
namespace NekoDot.Views; | |
public partial class MainWindow : Window { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////// | |
// the data class on each prefab player | |
/////////////////////////////////////// | |
public class PlayerData : NetworkBehaviour { | |
[Networked] public int playerId { get; set; } // ID unique pour chaque joueur | |
[Networked, OnChangedRender(nameof(UpdateLocalRender))] public NetworkBool hasPhillipeKaterine { get; set; } | |
public void UpdateLocalRender() { | |
foreach (var player in ObjectsReference.instance.RPCmanager.playerDataByPlayerId) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Test { | |
string feedback = "wow trop bien :O" | |
} |