This class is the base interface needed to handle positional input from the mobile device The reset and GUI interface allow for external control of reseting the virtual position of the device
Inheritance: MonoBehaviour
    public static TransformManagerInterface Instance;     //the generic instance of the manager, whether it be with out without positional tracking

    /// <summary>
    ///  Initialize generic Instance
    /// </summary>
    protected void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }
    }
 /// <summary>
 ///  Nullify instance when this object is destroyed
 /// </summary>
 protected void OnDestroy()
 {
     Instance = null;
 }
示例#3
0
 /// <summary>
 ///  Nullify instance when this object is destroyed
 /// </summary>
 protected void OnDestroy()
 {
     Instance = null;
 }
示例#4
0
 /// <summary>
 ///  Initialize generic Instance
 /// </summary>
 protected void Awake()
 {
     if (Instance == null)
         Instance = this;
 }