15 lines
362 B
C#
15 lines
362 B
C#
![]() |
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class NormalEnemy : Enemy
|
||
|
{
|
||
|
protected override void OnTouchThePlayer(MyPlayer player)
|
||
|
{
|
||
|
player.OnBeHit(ATK,
|
||
|
((transform.position.x -
|
||
|
player.transform.position.x)
|
||
|
> 0) ? 1 : -1);
|
||
|
}
|
||
|
}
|