
一:原作地址
https://www.youtube.com/watch?v=nXKiKGZ20Wg
二:項(xiàng)目源碼
https://github.com/mixandjam/Pikmin-Gameplay
三:運(yùn)行結(jié)果
運(yùn)行環(huán)境:2020.3.8f1c1
報(bào)錯(cuò)
'PropertyUtils' is inaccessible due to its protection leve
原因是PropertyUtils變成了私有的
解決:在報(bào)錯(cuò)的地方添加下面代碼
internal static class PropertyUtils
{
public static string ConstructConstraintDataPropertyName(string property)
{
return "m_Data." + property;
}
public static string ConstructCustomPropertyName(Component component, string property)
{
return component.transform.GetInstanceID() + "/" + component.GetType() + "/" + property;
}
}
運(yùn)行結(jié)果:

有趣的游戲