2013年12月11日
摘要: UnityEngine.Object继承自system.Object,是Unity所涉及所有物体的基类。先看一下Object重载的运算符:OperatorsboolDoes the object exist?operator !=Compares if two objects refer to a different object.operator ==Compares if two objects refer to the same.下面几个注意点是我在最近使用发现的。(1)Object类重载了类型隐式转换运算符“bool”。这个如果不注意,在某些情况下可能会造成意料外的调用。例class 阅读全文
posted @ 2013-12-11 18:07 焰企鹅 阅读(10318) 评论(0) 推荐(0) 编辑