Ejemplo n.º 1
0
 /// <summary>
 /// Creates a Layer Controller Manager with a given list
 /// </summary>
 /// <param name="layerControllers">List of layer controllers</param>
 /// <param name="sortingOrder">Sorting order that is going to be used</param>
 /// <param name="amplitude">Amplitude for the layer controller</param>
 public LayerControllerManager(List <LayerController> layerControllers, LayerController.SortingOrder sortingOrder, float amplitude)
 {
     _amplitude         = amplitude;
     _layersControllers = layerControllers;
     _sortingOrder      = sortingOrder;
     UpdateLayerControllers();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets a sorting order
 /// </summary>
 /// <param name="sortingOrder">Sorting order to be set</param>
 /// <param name="amplitude">Amplitude for the layer controller</param>
 public void SetSortingOrder(LayerController.SortingOrder sortingOrder, float amplitude = 1)
 {
     _sortingOrder = sortingOrder;
     _amplitude    = amplitude;
     UpdateLayerControllers();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a LayerControllerManager
 /// </summary>
 /// <param name="sortingOrder">Sorting order that is going to be used</param>
 /// <param name="amplitude">Amplitude for the layer controller</param>
 public LayerControllerManager(LayerController.SortingOrder sortingOrder, float amplitude = 1)
 {
     _amplitude         = amplitude;
     _layersControllers = new List <LayerController>();
     _sortingOrder      = sortingOrder;
 }