void Awake() { GetComponent <UIEventListener>().onClick = OnItemClick; SC_RankingUnit = CreatObjectToNGUI.InstantiateObj(RankingUint_prefab, RankingUnitPoint).GetComponent <RankingUnit>(); SC_PlayerHeadUnit = CreatObjectToNGUI.InstantiateObj(PlayerHeadUnit_prefab, PlayerHeadUnitPoint).GetComponent <PlayerHeadUnit>(); SC_PVPUnit = CreatObjectToNGUI.InstantiateObj(PvpUnit_prefab, PvpUnitPoint).GetComponent <PVPUnit>(); LookdetailBtn.SetCallBackFuntion(DetailBtnClick); }