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

My KillPlayer Code wont work! Please help!

$
0
0
I typed the code: using UnityEngine; using System.Collections; public class KillPlayer : MonoBehaviour { public LevelManager levelManager; //Using this for initalization void Start () { levelManager = FindObjectOfType(); } //Update is called once per frame void Update () { } void OnTriggerEnter2dCollider2D other) { if(other.name == "Player") } levelManager.RespawnPlayer(); { } } And I got 4 errors. 1 of them was "error CS1519: Unexpected symbol 'other' in class, struct, or interface member declaration" Another one of them was " error CS1519: Unexpected symbol ')' in class, struct, or interface member declaration" Another one was "error CS1519: Unexpected symbol '==' in class, struct, or interface member declaration" Another one was "error CS8025: Parsing error" Please Help! Gamesplus James or any other user I really need help!

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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