Int Variable Instance Provider

Alows for standard init of a Atoms Variable Instance

This Code snippet uses the free Unity Atoms package. Check it out under https://unity-atoms.github.io/unity-atoms/

using UnityAtoms.BaseAtoms;
using UnityEngine;

public class IntVariableInstanceProvider : MonoBehaviour
{
    public IntReference variableInstance;
    public IntReference providedValue;

    private void Awake()
    {
         variableInstance.Value = providedValue.Value;
    }
} 
using UnityAtoms.BaseAtoms;
using UnityEngine;

public class FloatVariableInstanceProvider : MonoBehaviour
{
    public FloatReference variableInstance;
    public FloatReference providedValue;

    private void Start()
    {
        variableInstance.Value = providedValue.Value;
    }
}  
using UnityAtoms.BaseAtoms;
using UnityEngine;

public class ColorVariableInstanceProvider : MonoBehaviour
{
    public ColorReference variableInstance;
    public ColorReference providedValue;

    private void Start()
    {
        variableInstance.Value = providedValue.Value;
    }
}