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); }
private void AddFromTwoButton_Click(object sender, RoutedEventArgs e) { MainEvents.RaiseAddFromTwo(); }
public void Clicked() { MainEvents.OnButtonClicked(this); }