private void Start() { // Generate a runtime copy that's safe to interact with runtimeStats = originalStats.CreateRuntimeCopy(); armor.ApplyAdjustment(runtimeStats); // Generate the health bar var health = runtimeStats.GetStatInt("health"); healthBar.maxValue = health; healthBar.value = health; // Bind our receive damage button buttonDealDamage.onClick.AddListener(ReceiveDamage); }
void Awake() { copy = original.CreateRuntimeCopy(); }