21 lines
349 B
C#
21 lines
349 B
C#
using UnityEngine;
|
|
|
|
namespace TON
|
|
{
|
|
public partial class MonsterBase
|
|
{
|
|
private void OnGUI()
|
|
{
|
|
if (GUILayout.Button("Hit"))
|
|
{
|
|
ApplyDamage(1);
|
|
}
|
|
|
|
if (GUILayout.Button("Dead"))
|
|
{
|
|
ApplyDamage(1000000000);
|
|
}
|
|
}
|
|
}
|
|
}
|