Exemple #1
0
    // Use this for initialization
    void Start()
    {
        throwCountdown   = throwDelay;
        warningCountdown = warningTime;
        blockableCDTimer = blockableCDMax;
        lrWarningCounter = lrWarningTime;
        healthPercent    = (currentHealth / totalHealth);
        healthUI.value   = healthPercent;

        FLoatingTextController.Initialize();
    }
Exemple #2
0
 public void TakeDamage(float damage)
 {
     currentHealth -= damage;
     FLoatingTextController.CreateFloatingText(damage.ToString(), transform);
 }