UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"Ignoring collision between enemy and asteroid"
public class IgnoreEnemy : MonoBehaviour { void Awake() { Physics.IgnoreLayerCollision(LayerMask.NameToLayer("Shootable"), LayerMask.NameToLayer("Shootable")); } }