CurrentPage() публичный Метод

public CurrentPage ( ) : int
Результат int
    /// <summary>
    /// left: -1
    /// right: 1
    /// </summary>
    /// <param name="direction"></param>
    public void UpdateTileProperty(int direction)
    {
        int id = TilePropertiesScrollSnap.CurrentPage() + 1;

        //TilePropertiesDropdown.value = (int)m_tileMap.GetTileProperty(id + direction);
        UpdateTilePropertiesInfo(id + direction);
    }
Пример #2
0
 static public int CurrentPage(IntPtr l)
 {
     try {
         UnityEngine.UI.Extensions.ScrollSnap self = (UnityEngine.UI.Extensions.ScrollSnap)checkSelf(l);
         var ret = self.CurrentPage();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }