コード例 #1
0
 public void Toggle()
 {
     if (!_potentialField.IsActiveWith(_pheromoneType))
     {
         _potentialField.Activate(_pheromoneType);
     }
     else
     {
         _potentialField.Deactivate();
     }
 }