RegisterPersistentListener() public method

public RegisterPersistentListener ( UnityEngine ttarget, string mmethodName ) : void
ttarget UnityEngine
mmethodName string
return void
        public void RegisterVoidPersistentListener(int index, Object targetObj, string methodName)
        {
            PersistentCall listener = GetListener(index);

            listener.RegisterPersistentListener(targetObj, methodName);
            listener.mode = PersistentListenerMode.Void;
        }
Example #2
0
        public void RegisterEventPersistentListener(int index, UnityEngine.Object targetObj, string methodName)
        {
            PersistentCall listener = this.GetListener(index);

            listener.RegisterPersistentListener(targetObj, methodName);
            listener.mode = PersistentListenerMode.EventDefined;
        }
        public void RegisterObjectPersistentListener(int index, object targetObj, object argument, string methodName)
        {
            PersistentCall listener = this.GetListener(index);

            listener.RegisterPersistentListener(targetObj, methodName);
            listener.mode = PersistentListenerMode.Object;
        }
Example #4
0
        public void RegisterVoidPersistentListener(int index, UnityEngine.Object targetObj, Type targetObjType, string methodName)
        {
            PersistentCall listener = this.GetListener(index);

            listener.RegisterPersistentListener(targetObj, targetObjType, methodName);
            listener.mode = PersistentListenerMode.Void;
        }
Example #5
0
        public void RegisterStringPersistentListener(int index, UnityEngine.Object targetObj, string argument, string methodName)
        {
            PersistentCall listener = this.GetListener(index);

            listener.RegisterPersistentListener(targetObj, methodName);
            listener.mode = PersistentListenerMode.String;
            listener.arguments.stringArgument = argument;
        }
        public void RegisterFloatPersistentListener(int index, Object targetObj, float argument, string methodName)
        {
            PersistentCall listener = GetListener(index);

            listener.RegisterPersistentListener(targetObj, methodName);
            listener.mode = PersistentListenerMode.Float;
            listener.arguments.floatArgument = argument;
        }
        public void RegisterObjectPersistentListener(int index, Object targetObj, Object argument, string methodName)
        {
            PersistentCall listener = GetListener(index);

            listener.RegisterPersistentListener(targetObj, methodName);
            listener.mode = PersistentListenerMode.Object;
            listener.arguments.unityObjectArgument = argument;
        }
        public void RegisterBoolPersistentListener(int index, Object targetObj, bool argument, string methodName)
        {
            PersistentCall listener = GetListener(index);

            listener.RegisterPersistentListener(targetObj, methodName);
            listener.mode = PersistentListenerMode.Bool;
            listener.arguments.boolArgument = argument;
        }
        public void RegisterIntPersistentListener(int index, object targetObj, int argument, string methodName)
        {
            PersistentCall listener = this.GetListener(index);

            listener.RegisterPersistentListener(targetObj, methodName);
            listener.mode = PersistentListenerMode.Int;
            listener.arguments.intArgument = argument;
        }
Example #10
0
        public void RegisterFloatPersistentListener(int index, UnityEngine.Object targetObj, Type targetObjType, float argument, string methodName)
        {
            PersistentCall listener = this.GetListener(index);

            listener.RegisterPersistentListener(targetObj, targetObjType, methodName);
            listener.mode = PersistentListenerMode.Float;
            listener.arguments.floatArgument = argument;
        }