- Home /
This question was
closed May 13, 2014 at 09:39 PM by
Graham-Dunnett for the following reason:
Duplicate Question
Question by
brickboy700 · May 13, 2014 at 09:38 PM ·
errorcs8025cs1525
Unexpected Symbol and Parsing Errors
Im making a player health and death script and their are 2 annoying errors that when I try to fix , they add more errors. Can please some one help (C# syntax only).
Errors:
Assets/Scripts/PlayerHealthAndDeath.cs(12,17): error CS1525: Unexpected symbol `{' Assets/Scripts/PlayerHealthAndDeath.cs(18,10): error CS8025: Parsing error
using UnityEngine;
using System.Collections;
public class PlayerHealthAndDeath : MonoBehaviour
{
public float playerHealth = 100f;
public float damage = 10f;
void OnTriggerEnter(Collider other)
{
if(gameObject.tag = ("Enemy") // Symbole error
{
playerHealth -= damage * Time.deltaTime;
}
}
if(playerHealth == 0) // Parsing error
{
Destroy(this.gameObject);
}
}
Comment
Follow this Question
Related Questions
C# Errors CS1525,CS8025 2 Answers
Errors CS1525 and CS8025.... 1 Answer
Assets/Scripts/PlayerController.cs(22,25): error CS8025: Parsing error 0 Answers
error CS1525, please help 0 Answers
Can someone help me with a error 1 Answer