Ejemplo n.º 1
0
 /// <summary>
 /// Start the object movement handling.
 /// </summary>
 /// <param name="objectToHandle">Object to move</param>
 /// <param name="boundaryCalculator">Movement bounds calculation strategy</param>
 public void StartObjectMovementHandling(GameObject objectToHandle, IRingMovementBondaryCalculationStrategy boundaryCalculator)
 {
     _ActiveObject       = objectToHandle;
     _BoundaryCalculator = boundaryCalculator;
     _isObjectMovementHandlingEnabled = true;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Set movement bounds calculation strategy
 /// </summary>
 /// <param name="boundaryCalculator">Strategy</param>
 public void SetBoundaryCalculator(IRingMovementBondaryCalculationStrategy boundaryCalculator)
 {
     _BoundaryCalculator = boundaryCalculator;
 }