Question by
sid4 · Oct 21, 2016 at 11:47 AM ·
scripting problem
on collision code doesnt work. pls help error CS8025: Parsing error
I want player to die if he falls on ground but im getting errors .
Assets/dart/die.cs(13,9): error CS8025: Parsing error
using UnityEngine;
using System.Collections;
public class die : MonoBehaviour {
void OnCollisionEnter2D(Collision2D coll) {
{
if (coll.gameObject.CompareTag ("Ground")) {
Destory (gameObject, 1);
}
Comment