示例#1
0
 private void HandleOperatorButton(OperatorButton operatorButton)
 {
     if (isAnimation || operatorButton.isSelected || !formula.CanAppendOperator(operatorButton.Operator))
     {
         SoundWareHouse.Instance.seButtonError.GetComponent <AudioSource>().Play();
         return;
     }
     SoundWareHouse.Instance.seTermButton.GetComponent <AudioSource>().Play();
     formula.AppendOperator(operatorButton.Operator);
     formulaText.AppendOperator(operatorButton.Operator);
     HandleTermButton(operatorButton);
 }