IEnumerator HlthUp()
    {
        while (bandAid)
        {
            yield return(new WaitForSeconds(1f));

            checkUp.UpdateValue(1f);
        }
    }
示例#2
0
 public void ChangeValue()
 {
     foreach (var data in floatDataList)
     {
         if (data == otherNameID)
         {
             dataObj.UpdateValue(data.value);
         }
     }
 }
示例#3
0
 public void ChangeHealth(FloatData incomingDamager)
 {
     foreach (var damager in damagerList)
     {
         if (damager == incomingDamager)
         {
             healthData.UpdateValue(damager.Value);
         }
     }
 }
示例#4
0
    private IEnumerator PoisonDamage()
    {
        while (true)
        {
            yield return(tickRate);

            playerHealth.UpdateValue(poison.GetTickDamage());
            healthBar.GetComponent <UIHealthBarController>().UpdateHealthBar();
        }
    }
示例#5
0
 public void ChangeHealth()
 {
     foreach (var damager in damagerList)
     {
         if (damager == otherNameID)
         {
             healthData.UpdateValue(damager.Value);
         }
     }
 }
示例#6
0
 private void OnTriggerEnter(Collider other)
 {
     data.UpdateValue(-.1f);
 }
示例#7
0
 public void DoDamage()
 {
     playerHealth.UpdateValue(firePower);
 }
 public void UpdateValue()
 {
     dataObj.UpdateValue(fromNameId.value);
 }
 public void UpdateFloatData(float number)
 {
     floatDataObj.UpdateValue(number);
 }
示例#10
0
 public void DoDamage()
 {
     playerHealth.UpdateValue(firePower);
     damageAction.Raise();
 }
示例#11
0
 private void OnTriggerEnter(Collider other)
 {
     data.UpdateValue(-.1f);
     triggerEnterEvents.Invoke();
 }
示例#12
0
 private void OnTriggerEnter(Collider other)
 {
     health.UpdateValue(amount: 0.1f);
 }
 private void AddPoint(float value)
 {
     score.UpdateValue(value);
     score.DisplayNumber(targetText);
 }