Exemplo n.º 1
0
        internal static HandleRef getCPtrAndDisown(CallbackRegistry obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

            if (obj != null)
            {
                ptr             = obj.swigCPtr;
                obj.swigCMemOwn = false;
            }

            return(ptr);
        }
Exemplo n.º 2
0
            public void Awake()
            {
                inputCallbacks  = new Dictionary <Type, Action <Action, Combination> >();
                enterCallbacks  = new Dictionary <Type, Action <Action, Combination> >();
                inputRegistry   = new CallbackRegistry(inputCallbacks);
                enterRegistry   = new CallbackRegistry(enterCallbacks);
                stopInputSearch = new Action(StopInputSearch);

                states = gameObject.GetComponentInParent <StateDict>();
                fgChar = gameObject.GetComponentInParent <FightingGameCharacter>();
                frame  = GameObject.FindGameObjectWithTag("rspTime").GetComponent <FrameEnforcer>();
            }
Exemplo n.º 3
0
 internal static HandleRef getCPtr(CallbackRegistry obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }