Beispiel #1
0
    public void StartGame()
    {
        animator.SetBool("opened", false);

        sFXDispatcher.PlaySfxOnce();

        // start game
        Events.Level.Start.SafeInvoke();
    }
Beispiel #2
0
    private void OnSpawn(Vector3 position)
    {
        // sfx
        spawnDispatcher.PlaySfxOnce();

        // vfx
        Instantiate(vfxParticles, position, vfxParticles.transform.rotation);
    }
Beispiel #3
0
    public void RestartGame()
    {
        sfxDispatcher.PlaySfxOnce();

        Events.Level.Start.Invoke();
    }
Beispiel #4
0
 private void PlayCardCompleted(Mission m)
 {
     cardCompletedDispatcher.PlaySfxOnce();
 }
Beispiel #5
0
 private void PlayNewCard(Mission m)
 {
     newCardDispatcher.PlaySfxOnce();
 }