Exemplo n.º 1
0
 private void CreateWheels(SimplifiedWheelElements elements)
 {
     if (wheels != null)
     {
         foreach (Wheel wheel in wheels)
         {
             Destroy(wheel.gameObject);
         }
     }
     if (elements.StartupWheel < 0)
     {
         return;
     }
     wheels       = new Wheel[elements.Wheels.Length];
     startupWheel = elements.StartupWheel;
     for (int i = 0; i < wheels.Length; i++)
     {
         var wheel = Instantiate(wheelPrefab, canvas.transform);
         wheels[i]             = wheel;
         wheel.Template        = elements.Wheels[i];
         wheel.ButtonTemplates = elements.Buttons;
     }
     ResetWheelPositions();
     cursorHighlight.wheel = wheels[startupWheel];
     cursorMovement.transform.SetAsLastSibling();
 }
Exemplo n.º 2
0
        public void UpdateElements(SimplifiedWheelElements elements)
        {
#if NO_CONNECTION
            return;
#endif
            Validate();
            bridge.Pass(parameters: elements);
        }
Exemplo n.º 3
0
 public void UpdateElements(SimplifiedWheelElements elements)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 public void UpdateElements(SimplifiedWheelElements elements)
 {
     pendingElements = elements;
 }