Код: Выделить всё
`using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Enemy : MonoBehaviour
{
Animator animator;
Rigidbody2D rb;
// Start is called before the first frame update
public float Health
{
set
{
if(value < health)
{
OnHit(Vector2 knockback);
}
health = value;
print(value);
if(health
Подробнее здесь: [url]https://stackoverflow.com/questions/79084705/error-cs1003-syntax-error-expected-unity-c-2d-rpg-game[/url]
Мобильная версия