Ejemplo n.º 1
0
 /// <summary>
 /// Moves m_BuildingToMove from old position in dictionary to it's current position
 /// </summary>
 public void ConfirmRemovementOfBuilding()
 {
     if (!m_MovementBrushActive || m_BuildingToMove == null)
     {
         return;
     }
     // Place back into Map
     PlaceMovedBuildingBackToMap();
     // Reset
     m_BuildingToMove.transform.GetChild(0).GetComponent <SpriteRenderer>().color = m_BuildingToMove_OldColor;
     m_BuildingToMove.BuildingMoved();
     m_BuildingToMove             = null;
     m_BuildingToMove_OldPosition = Vector3.zero;
     m_BuildingToMove_OldColor    = Color.white;
 }