예제 #1
0
    void DoingClick(GameObject go)
    {
        SoundManager.instans.EffectPlay(SoundManager.EffectSoundEnum.Click, false);

        if (go.name == "BuildStart")
        {
            buildReadyPopupController.buildStateChage(4);
        }
        else if (go.name == "BuildNameChange")
        {
            UIInput input = transform.FindChild("InputPanel/NameInput").GetComponent <UIInput>();
            input.isSelected = true;
        }
        else if (go.name == "BuildStartOnBack")
        {
            buildReadyPopupController.buildStateChage(1);
        }
    }
예제 #2
0
    void DoingClick(GameObject go)
    {
        SoundManager.instans.EffectPlay(SoundManager.EffectSoundEnum.Click, false);

        if (go.name == "BuildLayerSelectPopupClose")
        {
            buildReadyPopupController.buildStateChage(0);
        }
        else if (go.name == "BuildReadyOn")
        {
            LayerUpOn();
        }
        else if (go.name == "BuildStart")
        {
            buildReadyPopupController.buildStateChage(2);
            Debug.Log("BuildStart");
        }
        else if (go.name == "Toggle")
        {
            int count = UIEventListener.Get(go).eventCount;

            buildToggleState = count;

            toggleSelectImage.transform.position = go.transform.position;

            Debug.Log("toggleSelectImage.transform.position = " + toggleSelectImage.transform.position);

            ToggleSelectOn();
        }
        else if (go.name == "BuildLastDestroy")
        {
            LayerDown();
        }
        else if (go.name == "Layer")
        {
            LayerSelect(go);
        }
        else if (go.name == "Preview")
        {
            LayerSelect(go);
        }
    }
예제 #3
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);
    }