Esempio n. 1
0
        public void GetTypeAtIndex()
        {
            if (!isProxyValid())
            {
                return;
            }

            if (type.IsNone)
            {
                Fsm.Event(failureEvent);
                return;
            }

            try{
                if (proxy.arrayList[atIndex.Value] == null)
                {
                    type.Value = proxy.preFillType;
                }
                else
                {
                    type.Value = PlayMakerCollectionProxy.GetObjectVariableType(proxy.arrayList[atIndex.Value]);
                }
            }catch (System.Exception e) {
                Debug.Log(e.Message + " on " + Fsm.GameObjectName + "\nFsm: " + Fsm.Name + "\nState: " + Fsm.ActiveStateName);
                Fsm.Event(failureEvent);
                return;
            }
        }
Esempio n. 2
0
        public void DoGetType()
        {
            if (!isProxyValid())
            {
                return;
            }

            if (!proxy.hashTable.ContainsKey(key.Value))
            {
                Fsm.Event(KeyNotFoundEvent);
                return;
            }

            if (proxy.hashTable[key.Value] == null)
            {
                type.Value = proxy.preFillType;
            }
            else
            {
                type.Value = PlayMakerCollectionProxy.GetObjectVariableType(proxy.hashTable[key.Value]);
            }

            Fsm.Event(KeyFoundEvent);
        }