Ejemplo n.º 1
0
        public static DashGraph CreateEmptyGraph()
        {
            DashGraph graph = ScriptableObject.CreateInstance <DashGraph>();

            ((IInternalGraphAccess)graph).SetVersion(DashCore.GetVersionNumber());
            return(graph);
        }
Ejemplo n.º 2
0
        static void CheckDashVersion()
        {
            if (EditorConfig.lastUsedVersion == 0 || DashCore.GetVersionNumber() > EditorConfig.lastUsedVersion)
            {
                // TODO let user know?
            }

            EditorConfig.lastUsedVersion = DashCore.GetVersionNumber();
        }
Ejemplo n.º 3
0
        public void Initialize(DashController p_controller)
        {
            if (_initialized)
            {
                return;
            }

            if (version < DashCore.GetVersionNumber())
            {
                //Debug.LogWarning("Current Dash version is higher than initialized Graph, can result in possible issues please migrate in editor. Controller "+p_controller.name);
            }

            Controller = p_controller;

            _nodes.ForEach(n => ((INodeAccess)n).Initialize());
            variables.Initialize(p_controller.gameObject);

            _initialized = true;
        }