Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Error "OnTriggerEnter: this message has to be of type: Collider"

$
0
0
When attempting to use an OnTriggerEnter script, I get this error: Script error: OnTriggerEnter This message parameter has to be of type: Collider This message will be ignored my script: using System.Collections; using System.Collections.Generic; using UnityEngine; public class LevelTriggerScript : MonoBehaviour { public float newLevelTarget; void OnTriggerEnter(Collider2D other) { Score.SharedInstance.levelTarget = newLevelTarget; } } I kinda really need help with this.

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>