Exemple #1
0
    private void Awake()
    {
        UIPopUpHeart.SetUILobby(this);


        HeartArray = new GameObject[TOTAL_HEARTCOUNT];
        HeartArray = SceneMainLobby.HeartArray;

        mUserData = new UserData();


        mTime = new IntReactiveProperty();
        mTime.Subscribe((time) =>
        {
            Total_Timer = time;
            Min         = Total_Timer / 60;
            Sec         = Total_Timer % 60;

            SceneMainLobby.m_Timecontrol.text = string.Format("{0} :{1:D2}", Min, Sec);
        });

        if (CUILobby.instance == null)
        {
            CUILobby.instance = this;
        }
    }
 public void SetUILobby(CUILobby tUILobby)
 {
     UILobby = tUILobby;
 }