示例#1
0
 void Start()
 {
     deck.Initialize();
     uiManager.cardClickedEvent  += CardClickedHandler;
     godUI.sacrificeClickedEvent += SacrificeClickedHandler;
     DrawCards();
     Villagers = 15;
     Goats     = 0;
     Maidens   = 0;
     YoungLads = 0;
     backgroundMusic.PlayMusic(MusicType.Peaceful);
 }
 void audioBossStop()
 {
     soundAttackIntro.StopMusic();
     soundAttackLoop.StopMusic();
     soundAttackWin.StopMusic();
     mainBgMusic.PlayMusic();
 }
    IEnumerator audioBossPlay()
    {
        mainBgMusic.PauseMusic();
        soundAttackIntro.PlayMusic();
        yield return(new WaitForSeconds(5f));

        soundAttackLoop.PlayMusic();
    }
示例#4
0
 public void EndStory()
 {
     EndIvernTimeline();
     ivernTheme.StopMusic();
     mainTheme.PlayMusic();
     GetComponent <Collider2D>().enabled = false;
     //isStoryTelling = false;
 }
 void stopAttackPlayer()
 {
     audioBossStop();
     soundTriggerObject.SetActive(false);
     soundAttackWin.PlayMusic();
     death    = true;
     canSpawn = false;
     StartCoroutine(PillarNotActive(5f));
 }
示例#6
0
 private void StartStory()
 {
     Debug.Log("enter");
     StartIvernTimeline();
     BackgroundMusic[] bgMusic = FindObjectsOfType <BackgroundMusic>();
     mainTheme.PauseMusic();
     ivernTheme.PlayMusic();
     uiMain.ActiveUIStory();
     isStoryTelling = true;
     countmeet++;
 }
示例#7
0
        protected override void OnStartup(StartupEventArgs e)
        {
            var navigationStore = new NavigationStore();

            navigationStore.CurrentViewModel = new HomeViewModel(navigationStore); // FIRST VIEW OF APP

            var backgroundMusic = new BackgroundMusic();

            backgroundMusic.PlayMusic();

            // new Server();

            // new Client();


            MainWindow = new MainWindow()
            {
                DataContext = new MainWindowViewModel(navigationStore) // ASSIGN A VIEW
            };
            MainWindow.Show();

            base.OnStartup(e);
        }