示例#1
0
 public void ExitLockSection(InputAtomLock @lock)
 {
     if (current_lock == @lock)
     {
         is_in_lock_section = false;
     }
 }
示例#2
0
 private void Touch()
 {
     if (current_lock != null)
     {
         if (current_lock.IsActive() == false)
         {
             current_lock = null;
         }
     }
 }
示例#3
0
        public void EnterLockSection(InputAtomLock @lock)
        {
            if (current_lock != null)
            {
                if (@lock == current_lock)
                {
                    is_in_lock_section = true;
                }
            }
            else
            {
                current_lock = @lock;
            }

            @lock.Touch();
        }
        static public T ProcessLockSection <T>(this GamepadBase item, GamepadComponentId component, InputAtomLock @lock, Operation <T> operation)
        {
            T to_return = default(T);

            item.ProcessLockSection(component, @lock, delegate() {
                to_return = operation();
            });

            return(to_return);
        }
 static public void ProcessLockSection(this GamepadBase item, GamepadComponentId component, InputAtomLock @lock, Process process)
 {
     item.EnterLockSection(component, @lock);
     process();
     item.ExitLockSection(component, @lock);
 }
 static public void ExitLockSection(this GamepadBase item, GamepadComponentId component, InputAtomLock @lock)
 {
     item.GetComponent(component).ExitLockSection(@lock);
 }
示例#7
0
 public void ExitLockSection(InputAtomLock @lock)
 {
     GetAtom().ExitLockSection(@lock);
 }
示例#8
0
 public void EnterLockSection(InputAtomLock @lock)
 {
     GetAtom().EnterLockSection(@lock);
 }
 static public void ExitLockSection(this GamepadBase item, IEnumerable <GamepadComponentId> components, InputAtomLock @lock)
 {
     components.Process(i => item.GetComponent(i).ExitLockSection(@lock));
 }
示例#10
0
 public override void ExitLockSection(InputAtomLock @lock)
 {
     position.ExitLockSection(@lock);
 }
示例#11
0
 public void ExitLockSection(InputAtomLock @lock)
 {
     GetAtoms().Process(a => a.ExitLockSection(@lock));
 }
示例#12
0
 public abstract void ExitLockSection(InputAtomLock @lock);