using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MoreMountains.Tools
{
///
/// A test class used to demonstrate how MMObservable works in the MMObservableTest demo scene
///
public class MMObservableDemoSubject : MonoBehaviour
{
/// a public float we expose, outputting the x position of our object
public MMObservable PositionX = new MMObservable();
///
/// On Update we update our x position
///
protected virtual void Update()
{
PositionX.Value = this.transform.position.x;
}
}
}