コード例 #1
0
        public void addPoseCommandAction(PoseCommandAction action, String mode)
        {
            PoseCommand command;

            if (!modePoseCommands.TryGetValue(mode, out command))
            {
                command = new PoseCommand();
                modePoseCommands.Add(mode, command);
            }
            command.addAction(action);
        }
コード例 #2
0
        public void removePoseCommandAction(PoseCommandAction action, String mode)
        {
            PoseCommand command;

            if (modePoseCommands.TryGetValue(mode, out command))
            {
                command.removeAction(action);
                if (command.IsEmpty)
                {
                    modePoseCommands.Remove(mode);
                }
            }
        }
コード例 #3
0
 internal void removeAction(PoseCommandAction action)
 {
     actions.Remove(action);
 }
コード例 #4
0
 internal void addAction(PoseCommandAction action)
 {
     actions.Add(action);
 }