GetDefaultDataSource() public méthode

public GetDefaultDataSource ( ) : VJAbstractDataSource,
Résultat VJAbstractDataSource,
Exemple #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.");
            }
        }
    }
Exemple #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.");
            }
        }
    }