Ejemplo n.º 1
0
    private void Start()
    {
        Button retakeButton = transform.Find("RetakePhoto").GetComponent <Button>();
        Button nextButton   = transform.Find("Next").GetComponent <Button>();
        Button middleButton = transform.Find("Middle").GetComponent <Button>();
        Button rightButton  = transform.Find("Right").GetComponent <Button>();
        Button leftButton   = transform.Find("Left").GetComponent <Button>();

        retakeButton.onClick.AddListener(OnButtonRetake);
        nextButton.onClick.AddListener(OnButtonNext);
        middleButton.onClick.AddListener(OnButtonMiddle);
        rightButton.onClick.AddListener(OnButtonRight);
        leftButton.onClick.AddListener(OnButtonLeft);

        InitToggleListener();

        previewPanel = DictionaryExtension.TryGet(UIManager.Instance.PanelDict, UIPanelType.Preview) as UIPreview;
    }
Ejemplo n.º 2
0
    private IEnumerator SendingMail()
    {
        yield return(new WaitForSeconds(2));

        UIEmail emailPanel = DictionaryExtension.TryGet <UIPanelType, BasePanel>(UIManager.Instance.PanelDict, UIPanelType.Email) as UIEmail;

        emailPanel.SetInputEmpty();

        switch (Global.returnCode)
        {
        case ReturnCode.Success:
            UIManager.Instance.PopPanel();
            UIManager.Instance.PopPanel();
            UIManager.Instance.PopPanel();
            UIManager.Instance.PushPanel(UIPanelType.Success);
            break;

        case ReturnCode.Failure:
            UIManager.Instance.PopPanel();
            UIManager.Instance.PopPanel();
            UIManager.Instance.PushPanel(UIPanelType.Failure);
            break;
        }
    }
Ejemplo n.º 3
0
 public override void OnInit()
 {
     base.OnInit();
     place = new UIPlaces();
     place.LoadPlace(DictionaryExtension.TryGet <GameFabs, string>(GamefabPathDict, GameFabs.Cube));
 }