コード例 #1
0
 public void Unregister(DataViewList list)
 {
     if (!lists.Contains(list))
     {
         Debug.LogErrorFormat("List '{0}' has not been registered.", list.DataView.name);
     }
     else
     {
         lists.Remove(list);
     }
 }
コード例 #2
0
 public void Register(DataViewList list)
 {
     if (lists.Contains(list))
     {
         Debug.LogErrorFormat("List '{0}' is already registered.", list.DataView.name);
     }
     else
     {
         lists.Add(list);
     }
 }
コード例 #3
0
 public void Focus(DataViewList list)
 {
     if (!lists.Contains(list))
     {
         Debug.LogWarningFormat("Cannot focus on list '{0}' as it has not been registered. Call Register first.", list.DataView.name);
     }
     else
     {
         index = lists.IndexOf(list);
         Focus(index);
     }
 }