Esempio n. 1
0
            internal bool GetGlobal <T>(NodeCanvas nodecanvas, string key, out T outvalue) where T : class
            {
                if (nodecanvas != null && this.globalvals.ContainsKey(nodecanvas))
                {
                    FSMGloablValues fbv = this.globalvals[nodecanvas];
                    if (fbv.Has(key))
                    {
                        outvalue = (T)fbv.getObject(key);
                        return(true);
                    }
                }

                outvalue = null;
                return(false);
            }
Esempio n. 2
0
            internal bool GetGlobal(NodeCanvas nodecanvas, string key, out System.Object outvalue)
            {
                if (nodecanvas != null && this.globalvals.ContainsKey(nodecanvas))
                {
                    FSMGloablValues fbv = this.globalvals[nodecanvas];
                    if (fbv.Has(key))
                    {
                        outvalue = fbv.getObject(key);
                        return(true);
                    }
                }

                outvalue = null;
                return(false);
            }