谁能告诉我从对象转换为字典的正确方法
我用过这种方式。
public void ReceiveFriedns(Object obj)
{
Dictionary<string,object> ht = new Dictionary<string,object>();
ht = obj as Dictionary<string,object>;
}
但它显示无法从UnityEngine.Object' to
System.Collections.Generic.Dictionary'转换类型