up
This commit is contained in:
@@ -1,12 +1,21 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using Coolape;
|
||||
using System.Collections.Generic;
|
||||
|
||||
[RequireComponent (typeof(UIPopupList))]
|
||||
public class CLUIElementPopList : UIEventListener
|
||||
{
|
||||
UIPopupList _poplist;
|
||||
public List<EventDelegate> onSelect = new List<EventDelegate>();
|
||||
|
||||
protected void ExecuteOnChange()
|
||||
{
|
||||
if (EventDelegate.IsValid(onSelect))
|
||||
{
|
||||
EventDelegate.Execute(onSelect, gameObject); // modify by chenbin
|
||||
}
|
||||
}
|
||||
public UIPopupList poplist {
|
||||
get {
|
||||
if (_poplist == null) {
|
||||
@@ -31,5 +40,6 @@ public class CLUIElementPopList : UIEventListener
|
||||
{
|
||||
string val = orgs [1].ToString ();
|
||||
poplist.value = val;
|
||||
ExecuteOnChange();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user