0
using UnityEngine;
using System.Collections;
public class ParticleSystemCollisionManager : MonoBehaviour {
void OnParticleCollision(GameObject other) {
// work on pc build, webplayer build
//when switch to webgl build, it work in editor
//but after building, run webgl build in browser, it does not work
Debug.Log("Collision on " + other.name);
Destroy(this.gameObject);
}
}
工作,我建立一个游戏TMS'OnParticleCollision' 不存在的WebGL构建
它工作在PC/web playter。它在编辑器(webgl构建设置)中也起作用。但是在我将它构建到webgl后,它不起作用。看来OnParticleCollision
没有运行。
你知道原因吗?你能帮我修好吗?