Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个对象传递给一个函数。现在我想像在类函数中一样访问对象项(EX:obj a:a.name):
我想访问级别对象 slaType 项。“级别.slaType”
您需要将关卡对象转换为特定的类类型..
LevelType levelObject = level as LevelType; if(levelObject != null) { levelObject.slaType; }