You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
2.1 KiB
32 lines
2.1 KiB
using UnityEngine; |
|
using System.Collections; |
|
using AX.MessageSystem; |
|
using UnityEngine.UI; |
|
|
|
public class AdministrationUI : MonoBehaviour { |
|
void Awake () |
|
{ |
|
//GameObject.Find("StaffButton").GetComponent<Button>().onClick.AddListener(delegate { CarAndPeopleButtonControl(GameObject.Find("StaffButton")); }); |
|
//GameObject.Find("StaffButton").GetComponent<Button>().onClick.AddListener(delegate { CarAndPeopleControl(GameObject.Find("BroweMenu").transform.FindChild("StaffPeoPlePicture").gameObject); }); |
|
//GameObject.Find("CarAndPeopleButton").GetComponent<Button>().onClick.AddListener(delegate { CarAndPeopleButtonControl(GameObject.Find("CarAndPeopleButton")); }); |
|
//GameObject.Find("CarAndPeopleButton").GetComponent<Button>().onClick.AddListener(delegate { CarAndPeopleControl(GameObject.Find("BroweMenu").transform.FindChild("CarPeoPlePicture").gameObject); }); |
|
//GameObject.Find("ToolButton").GetComponent<Button>().onClick.AddListener(delegate { CarAndPeopleButtonControl(GameObject.Find("ToolButton")); }); |
|
//GameObject.Find("ToolButton").GetComponent<Button>().onClick.AddListener(delegate { CarAndPeopleControl(GameObject.Find("BroweMenu").transform.FindChild("ToolsPeoPlePicture").gameObject); }); |
|
//GameObject.Find("DisasterButton").GetComponent<Button>().onClick.AddListener(delegate { CarAndPeopleButtonControl(GameObject.Find("DisasterButton")); }); |
|
//GameObject.Find("DisasterButton").GetComponent<Button>().onClick.AddListener(delegate { CarAndPeopleControl(GameObject.Find("BroweMenu").transform.FindChild("DisasterPeoPlePicture").gameObject); }); |
|
} |
|
//public void CarAndPeopleControl(GameObject obj) |
|
// { |
|
// MessageDispatcher.SendMessage("CarAndPeople", (object)obj.name); |
|
// } |
|
public void CarAndPeopleButtonControl(GameObject ButtonObj) |
|
{ |
|
MessageDispatcher.SendMessage("CarAndPeopleColorCondition", (object)ButtonObj.name); |
|
} |
|
//public void IntercalateButtonControl(GameObject obj) |
|
//{ |
|
// MessageDispatcher.SendMessage("IntercalateButton", (object)obj.name); |
|
//} |
|
|
|
|
|
}
|
|
|