コード例 #1
0
    private void OnEnter(string obj)
    {
        Debug.Log("OnEnter:" + obj);
        var splits = obj.Split(',');
        var id     = splits[0];

        Debug.Log($"{id},{Main.Net.GetID()}");
        if (id == Main.Net.GetID())
        {
            Proto.CallList();
            return;
        }
        var x      = float.Parse(splits[1]);
        var y      = float.Parse(splits[2]);
        var z      = float.Parse(splits[3]);
        var yEuler = float.Parse(splits[4]);

        Main.NewGhost(id, new Vector3(x, y, z), yEuler);
    }