Ejemplo n.º 1
0
    public void StartGame()
    {
        animator.SetBool("opened", false);

        sFXDispatcher.PlaySfxOnce();

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

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

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