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);
}
}
ich ein Spiel TMS'OnParticleCollision' funktioniert nicht in webgl build
Es auf dem PC/web playter gearbeitet bauen. Und es hat auch im Editor (webgl build setting) funktioniert. Aber nachdem ich es zu Webgl gebaut habe, funktioniert es nicht. Es scheint, dass OnParticleCollision
nicht ausgeführt wird.
Kennen Sie den Grund? Könnten Sie mir helfen, es zu reparieren?