Esempio n. 1
0
        public void Spawn(float damageAmount)
        {
            DamageText instance = Instantiate <DamageText>(damageTextPrefab, transform);

            instance.SetValue(damageAmount);
        }
Esempio n. 2
0
 public void Spawn(float damage)
 {
     DamageText damageTextInstance = Instantiate<DamageText>(damageTextPrefab, transform);
     damageTextInstance.SetValue(damage);
 }
Esempio n. 3
0
 public void OnTextFadeComplete(DamageText text)
 {
 }
Esempio n. 4
0
        public void Spawn(float value)
        {
            DamageText damageText = Instantiate(damageTextPrefab, transform);

            damageText.Init(this, value);
        }
        public void Spawn(float damageAmount)
        {
            DamageText damageText = Instantiate(_damageTextPrefab, _spawnTransform);

            damageText.GetComponent <DamageText>().SetValue(damageAmount);
        }
        public void Spawn(float damageDealt)
        {
            DamageText damageText = Instantiate(damageTextPrefab, transform);

            damageText.SetValue(damageDealt);
        }