最简单的,onLoad函数里面写上:
this._initialHP = this.hP;
然后init函数:
this.hP = this._initialHP
↧
对象池放回去的节点再取出来的初始化问题
↧
最简单的,onLoad函数里面写上:
this._initialHP = this.hP;
然后init函数:
this.hP = this._initialHP