public void SteppedOnWalkableTile(Collider tile, PlayerMovement actor) { Renderer renderer = tile.GetComponent <Renderer>(); renderer.material.EnableKeyword("_EMISSION"); FmodEvent.PlayOneShot(unlockTiles, transform, null); tilesActivated++; }
public void GameOver() { currentGamestate = GameState.WINSCREEN; if (gameOverEvent != null) { gameOverEvent(); } FmodEvent.PlayOneShot(wonGame, transform, null); }
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); }
public void SteppedOnNonWalkableTile(Collider tile, PlayerMovement actor) { actor.Die(); FmodEvent.PlayOneShot(playerDeath, transform, null); }