// Use this for initialization void Start () { SetBtn(); Init(); buildReadyPopupController = transform.parent.GetComponent<BuildReadyPopupController>(); }
// Use this for initialization void Start() { SetBtn(); Init(); buildReadyPopupController = transform.parent.GetComponent <BuildReadyPopupController>(); }
void Awake() { SetBtn(); MoneyLabelReset(); buildReadyPopupController = transform.parent.GetComponent <BuildReadyPopupController>(); }
void Awake() { SetBtn(); MoneyLabelReset(); buildReadyPopupController = transform.parent.GetComponent<BuildReadyPopupController>(); }
IEnumerator BuildOnClick() { float waitTime = MainUIHide(true); yield return(new WaitForSeconds(waitTime)); GameObject buildReadyPopupControllerOBJ = Instantiate(Resources.Load("Prefabs/BuildReadPopupController")) as GameObject; buildReadyPopupControllerOBJ.transform.parent = transform; buildReadyPopupController = buildReadyPopupControllerOBJ.GetComponent <BuildReadyPopupController>(); buildReadyPopupController.buildStateChage(0); }