예제 #1
0
    public void LoadScreen(int id, bool isRight)
    {
        this.id = id;
        Debug.Log("LoadScreen " + id + " loading: " + loading + " activeScreen: " + activeScreen);

        if (loading)
        {
            return;
        }

        MainEvents.OnUIFX("swipe");

        loading = true;
        if (activeScreen != null)
        {
            activeScreen.SetCenterPosition();
            activeScreen.MoveTo(isRight, timeToTransition);
            lastActiveScreen = activeScreen;
        }

        activeScreen = all [id];
        activeScreen.gameObject.SetActive(true);
        activeScreen.SetInitialPosition(isRight);
        activeScreen.MoveTo(isRight, timeToTransition);
    }
예제 #2
0
 private void AddFromTwoButton_Click(object sender, RoutedEventArgs e)
 {
     MainEvents.RaiseAddFromTwo();
 }
예제 #3
0
 public void Clicked()
 {
     MainEvents.OnButtonClicked(this);
 }