2using System.Collections.Generic;
 
   18    public List<string> 
options = 
new List<string>();
 
   20    public void SetOptions(
int _index, List<string> langs, Action<int> onSelect, 
bool invoke = 
true, 
string langTopic = 
null)
 
   22        left.onClick.RemoveAllListeners();
 
   23        right.onClick.RemoveAllListeners();
 
   25        left.onClick.AddListener(delegate
 
   30        right.onClick.AddListener(delegate
 
   40        if (!langTopic.IsEmpty())
 
   46    public void SetOptions<T>(
int _index, IList<T> list, Func<T, string> funcName, Action<T> onSelect, 
bool invoke = 
true, 
string langTopic = 
null)
 
   49        foreach (T 
item in list)
 
   53        left.onClick.RemoveAllListeners();
 
   54        right.onClick.RemoveAllListeners();
 
   55        left.onClick.AddListener(delegate
 
   58            onSelect(list[
index]);
 
   60        right.onClick.AddListener(delegate
 
   63            onSelect(list[
index]);
 
   68            onSelect(list[
index]);
 
   70        if (!langTopic.IsEmpty())
 
   80            _index = (
loopOption ? (options.Count - 1) : 0);
 
void SetLang(string idLang)