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