Example #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();
 }
Example #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();
 }
Example #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;
 }