The two parameters refer to the same HealthDefinition asset. What does Run log?

from Unity ScriptableObject assets
Unity 6.6 beginner 2 min

The two parameters refer to the same HealthDefinition asset. What does Run log?

csharp
using UnityEngine;

public sealed class HealthDefinition : ScriptableObject
{
    public int currentHealth = 100;

    public void Hit(int damage)
    {
        currentHealth -= damage;
    }
}

public static class Probe
{
    public static void Run(HealthDefinition first, HealthDefinition second)
    {
        first.Hit(15);
        Debug.Log($"{first.currentHealth}, {second.currentHealth}");
    }
}
Open in playground
Report an error