コード例 #1
0
 protected virtual void Update()
 {
     if (null != operater && !operater.IsActionRunning(m_ActionType))
     {
         operation.StopOperate(operater, m_Mask);
     }
 }
コード例 #2
0
        public override bool IsIdle()
        {
            if (null == Operator)
            {
                return(true);
            }

            int idx = Array.IndexOf(pairOperationTypes, GetOperateMask());

            if (idx >= 0)
            {
                if (!m_Operator.IsActionRunning(pairActionTypes[idx]))
                {
                    m_Operator = null;
                    return(true);
                }
            }

            return(false);
        }
コード例 #3
0
 public override bool UnDo(IOperator oper)
 {
     oper.EndAction(PEActionType.Operation);
     return(!oper.IsActionRunning(PEActionType.Operation));
 }