/// <summary>
 /// Navigate to Up selectable
 /// </summary>
 /// <param name="menuSelected">Refrence varrible from manager</param>
 /// <returns>Wether refrence selectable changed<</returns>
 public override bool Up(ref Selectable menuSelected)
 {
     return(ChangeNav(ref menuSelected, up));
 }
 /// <summary>
 /// Navigate to Down selectable
 /// </summary>
 /// <param name="menuSelected">Refrence varrible from manager</param>
 /// <returns>Wether refrence selectable changed<</returns>
 public override bool Down(ref Selectable menuSelected)
 {
     return(ChangeNav(ref menuSelected, down));
 }
 /// <summary>
 /// Navigate to Right selectable
 /// </summary>
 /// <param name="menuSelected">Refrence varrible from manager</param>
 /// <returns>Wether refrence selectable changed<</returns>
 public override bool Right(ref Selectable menuSelected)
 {
     return(ChangeNav(ref menuSelected, right));
 }
 /// <summary>
 /// Navigate to Left selectable
 /// </summary>
 /// <param name="menuSelected">Refrence varrible from manager</param>
 /// <returns>Wether refrence selectable changed<</returns>
 public override bool Left(ref Selectable menuSelected)
 {
     return(ChangeNav(ref menuSelected, left));
 }
 /// <summary>
 /// Make right effector look like been selected, execute left event
 /// </summary>
 /// <param name="menuSelected">Refrence selectable will never be changed it here</param>
 /// <returns>Always false</returns>
 public override bool Right(ref Selectable menuSelected)
 {
     rightEvent.Invoke();
     return(true);
 }
 /// <summary>
 /// Make left effector look like been selected, execute left event
 /// </summary>
 /// <param name="menuSelected">Refrence selectable will never be changed it here</param>
 /// <returns>Always false</returns>
 public override bool Left(ref Selectable menuSelected)
 {
     leftEvent.Invoke();
     return(true);
 }
Exemple #7
0
 private void Awake()
 {
     canvas          = GetComponent <Canvas>();
     canvas.enabled  = enabled = false;
     defaultSelected = selected;
 }