Exemple #1
0
    public void SteppedOnWalkableTile(Collider tile, PlayerMovement actor)
    {
        Renderer renderer = tile.GetComponent <Renderer>();

        renderer.material.EnableKeyword("_EMISSION");

        FmodEvent.PlayOneShot(unlockTiles, transform, null);
        tilesActivated++;
    }
Exemple #2
0
    public void GameOver()
    {
        currentGamestate = GameState.WINSCREEN;
        if (gameOverEvent != null)
        {
            gameOverEvent();
        }

        FmodEvent.PlayOneShot(wonGame, transform, null);
    }
Exemple #3
0
    public void DisableEmission()
    {
        foreach (var tile in m_levelScript.walkableTiles)
        {
            Renderer renderer = tile.GetComponent <Renderer>();

            renderer.material.DisableKeyword("_EMISSION");

            Debug.Log("Lighted Down");
        }

        FmodEvent.PlayOneShot(hidetiles, transform, null);
    }
Exemple #4
0
 public void SteppedOnNonWalkableTile(Collider tile, PlayerMovement actor)
 {
     actor.Die();
     FmodEvent.PlayOneShot(playerDeath, transform, null);
 }