using UnityEngine;
///
/// Exposes static methods for other objects to communicate with.
///
public class StaticLink : MonoBehaviour
{
///
/// Draws the current update count.
///
void OnGUI()
{
GUILayout.Label("UpdateCount=" + updateCount);
}
///
/// Called by other objects to increate updateCount.
///
public static void IncrementUpdateCount()
{
updateCount++;
}
///
/// Number of times IncrementUpdateCount() has been called.
///
private static int updateCount = 0;
}