/*
  *
  */
 private void Awake()
 {
     // Handle single-tone aspect
     if (UITargetTrackerManager.Instance != null && UITargetTrackerManager.Instance != this)
     {
         throw new Exception("This script can only exist once in the scene.");
     }
     UITargetTrackerManager.Instance = this;
 }
    void Awake()
    {
        UITargetTrackerManager uiTargetTrackerManager = Object.FindObjectOfType <UITargetTrackerManager>();

        if (uiTargetTrackerManager == null)
        {
            Debug.LogError("UITargetTrackerManager not found in scene. Can't register myself as tracker target, " + this.name);
        }
        else
        {
            uiTargetTrackerManager.RegisterAsTarget(this);
        }
    }