GetDefaultDataSource() public method

public GetDefaultDataSource ( ) : VJAbstractDataSource,
return VJAbstractDataSource,
Beispiel #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.");
            }
        }
    }
Beispiel #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.");
            }
        }
    }