Ejemplo n.º 1
0
	// Use this for initialization
	void Start ()
	{
        SetBtn();
        Init();

        buildReadyPopupController = transform.parent.GetComponent<BuildReadyPopupController>();
	}
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        SetBtn();
        Init();

        buildReadyPopupController = transform.parent.GetComponent <BuildReadyPopupController>();
    }
Ejemplo n.º 3
0
    void Awake()
    {
        SetBtn();

        MoneyLabelReset();

        buildReadyPopupController = transform.parent.GetComponent <BuildReadyPopupController>();
    }
Ejemplo n.º 4
0
    void Awake() 
    {
        SetBtn();

        MoneyLabelReset();
        
        buildReadyPopupController = transform.parent.GetComponent<BuildReadyPopupController>();
    }
Ejemplo n.º 5
0
    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);
    }