Example #1
0
    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);
    }
Example #2
0
 void Awake()
 {
     copy = original.CreateRuntimeCopy();
 }