public DamagebleParam(DamagebleParam damagebleParam)
 {
     type      = damagebleParam.Type;
     value     = damagebleParam.Value;
     maxValue  = damagebleParam.MaxValue;
     weakneses = damagebleParam.Weakneses;
     strongs   = damagebleParam.Strongs;
 }
Пример #2
0
    private void PopupCreate(DamagebleParam param, DamageByType weapon, float damage)
    {
        var tmpPopup = Instantiate(popup, transform.position, Quaternion.identity);

        tmpPopup.GetComponentInChildren <TextMesh>().text = $"{param.Type}: {weapon.Value} : {damage}";
        Destroy(tmpPopup, popupDestroyTime);
        Debug.Log("Слабость у " + param.Type + " " + weapon.DamageType + " " + damage);
    }