unity3D中,这段提示是什么意思?NullReferenceException:Object referece not set to an instance of an object.怎样解决这个问题?这是一个坦克发射炮弹的例子.

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/11 07:37:32
unity3D中,这段提示是什么意思?NullReferenceException:Object referece not set to an instance of an object.怎样解决这个问题?这是一个坦克发射炮弹的例子.
xPN@o^5Y 6$zkLB1AT(!lgmۓRQ//yLFR%kǂ ̸oܚWͫ\7ImLd'c2E"cD"4A9RiGJv*9εz =8|̽ϝk[(`T~[goq)SH6wSjRp."0s0¢LB*sH.f= +#(?iSD5 fh^\TT$Փ-S5TnZ;*7Π:]yF4?>n

unity3D中,这段提示是什么意思?NullReferenceException:Object referece not set to an instance of an object.怎样解决这个问题?这是一个坦克发射炮弹的例子.
unity3D中,这段提示是什么意思?
NullReferenceException:Object referece not set to an instance of an object.怎样解决这个问题?这是一个坦克发射炮弹的例子.

unity3D中,这段提示是什么意思?NullReferenceException:Object referece not set to an instance of an object.怎样解决这个问题?这是一个坦克发射炮弹的例子.
被实例的object不存在应该是,看下是不是脚本里的公共变量在unity里没赋值..

空引用,没有把炮弹的实例拖到脚本接口吧