GetDefaultDataSource() public method

public GetDefaultDataSource ( ) : VJAbstractDataSource,
return VJAbstractDataSource,
Ejemplo n.º 1
0
    // Use this for initialization
    public virtual void Start()
    {
        lastValue = lastReturnedValue = valueBaseOffset;

        if (!manager)
        {
            manager = VJAbstractManager.GetDefaultManager();
            if (!manager)
            {
                Debug.LogError("[FATAL] VJ Manager not found.");
            }
        }

        if (!source)
        {
            source = manager.GetDefaultDataSource();
            if (!source)
            {
                Debug.LogError("[FATAL] Data source not found.");
            }
        }
        if (!boostSource)
        {
            boostSource = manager.GetDefaultDataSource();
            if (!source)
            {
                Debug.LogError("[FATAL] Data source not found.");
            }
        }
    }
Ejemplo n.º 2
0
    // Use this for initialization
    public virtual void Start()
    {
        if (!manager)
        {
            manager = VJAbstractManager.GetDefaultManager();
            if (!manager)
            {
                Debug.LogError("[FATAL] VJ Manager not found.");
            }
        }

        if (!source)
        {
            source = manager.GetDefaultDataSource();
            if (!source)
            {
                Debug.LogError("[FATAL] Data source not found.");
            }
        }
    }