Skip to content

Instantly share code, notes, and snippets.

@mikelovesrobots
Created February 24, 2014 20:40
Show Gist options
  • Save mikelovesrobots/9196558 to your computer and use it in GitHub Desktop.
Save mikelovesrobots/9196558 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
public class DudeDeathController : MonoBehaviour {
...
public void Die() {
DudeMotionArrester.SlowToStop();
Animator.Play("DudeDie");
BloodPoolSpawnAction.Act();
DisableInput();
DisableCollisions();
DisableShadow();
DisableFire();
DisableScoreTicker();
MusicPlayer.Instance.FadeOut();
DeathSoundEffect.Play();
StartCoroutine(WaitThenUpdateScoreAndEndScene());
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment