Урок 1 ( Смерть персонажа-Враг )-Enemy & Dead First.
У вашего броузера проблема в совместимости с HTML5
http://vk.com/doc-50289204_162302023?hash=d6add3c6e645645ba4 - использовать только скрипт Enemy
Скрипт PlayerDead
using UnityEngine;
using System.Collections;
public class PlayerDead : MonoBehaviour {
public GameObject Player;
public GameObject Ragdoll;
void OnTriggerEnter(Collider other){
if (other.tag == "DeadZone") {
Player.SetActive (false);
Ragdoll.SetActive (true);
Instantiate(Ragdoll, transform.position, transform.rotation);
}
}
}