コード例 #1
0
        public void Remove(InputBehavior behavior)
        {
            int idx = Behaviors.FindIndex((x) => { return(x.b == behavior); });

            if (idx >= 0)
            {
                Behaviors.RemoveAt(idx);
                behaviors_modified();
            }
        }
コード例 #2
0
 public void Remove(InputBehaviorSet behaviors)
 {
     if (behaviors == null)
     {
         return;
     }
     foreach (var binfo in behaviors.Behaviors)
     {
         int idx = Behaviors.FindIndex((x) => { return(x.b == binfo.b); });
         Behaviors.RemoveAt(idx);
     }
     behaviors_modified();
 }