void OnBecameInvisible() { //have some problems if (this != null) { if (this.HpAttribute.m_curHp < this.visitorAttri.angryLimit && targetPoint == null) { ScoreControl.AngryIncrease(1); } thisObj.SetActive(false); } }
void OnBecameInvisible() { //have some problems if (this != null) { if (this.HpAttribute.m_curHp < this.visitorAttri.angryLimit && targetPoint == null) { ScoreControl.AngryIncrease(1); } thisObj.SetActive(false); } }