rabidus-test/Assets/Scripts/Enemy.cs

16 lines
277 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Enemy : TriggerZone
{
2023-10-02 19:12:35 +03:00
[SerializeField] private TMPro.TextMeshProUGUI _nameField;
2023-10-02 19:12:35 +03:00
public string Name;
2023-10-02 19:12:35 +03:00
private void Start()
{
2023-10-02 19:12:35 +03:00
_nameField.SetText(Name);
}
}