Exemple #1
0
    public void RpcSyncPlayer(NetworkInstanceId[] hId)
    {
        for (int i = 0; i < hId.Count(); i++)
        {
            Actor hActor = ClientScene.FindLocalObject(hId[i]).GetComponent<Actor>();
            if (!scores.ContainsKey(hActor))
                scores.Add(hActor, 0);

            if(hActor.gameObject != Radar.Player)
                Radar.Add(hActor.gameObject);
        }
    }