Inheritance: MonoBehaviour
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.");
            }
        }
    }
    // 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.");
            }
        }
    }
Exemple #3
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.");
            }
        }
    }
    // 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.");
            }
        }
    }