コード例 #1
0
 protected void HurtNpc()
 {
     // hit Npc, and update the stats
     thisNpcBehavior.OnNormalDamage();
     thisUiManager.UpdateNpcText();
     if (thisNpcBehavior.GetNpcHitPoints() > 0)
     {
         thisUiManager.StopAnySlash(thisNpcBehavior.gameObject);
         thisUiManager.ActivateSingleSlash(thisNpcBehavior.gameObject);
     }
 }
コード例 #2
0
 protected void OnHeal()
 {
     thisHitPoints += 3;
     thisUiManager.ActivateLeaf(this.gameObject);
     thisUiManager.UpdateNpcText();
     thisUiManager.StartInGameLine("Moon", this.gameObject);
 }