Exemplo n.º 1
0
    void EnterCreateRole()
    {
        CameraFadeEffect.DoCameraFade(gameObject,
                                      new Color(0, 0, 0, 1),
                                      new Color(0, 0, 0, 0),
                                      1.5f);

        StartCoroutine(CreateNewRoleCoroutine(() =>
        {
            //load over
            SelectNewRole(0);
            UIManager.Instance.RemoveBlockLayer();
        }
                                              ));
    }
Exemplo n.º 2
0
    void EnterSelectRole(int idx)
    {
        CameraFadeEffect.DoCameraFade(gameObject,
                                      new Color(0, 0, 0, 1),
                                      new Color(0, 0, 0, 0),
                                      1.5f);

        StartCoroutine(CreateMyRoleCoroutine(() =>
        {
            for (int i = 0; i < mCreateRoleList.Count; i++)
            {
                mCreateRoleList[i].PlayStand();
            }
            //load over
            SelectMyRole(idx);

            UIManager.Instance.RemoveBlockLayer();
        }));
    }