28 lines
553 B
C#
28 lines
553 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class GasEnemy : Enemy
|
|
{
|
|
public Transform handPos;
|
|
|
|
public GameObject gasBomb;
|
|
public override void DoAttack(Vector3 target)
|
|
{
|
|
base.DoAttack(target);
|
|
}
|
|
|
|
public override void StopAttack()
|
|
{
|
|
base.StopAttack();
|
|
gasBomb.SetActive(true);
|
|
}
|
|
|
|
public override void CreateItem()
|
|
{
|
|
base.CreateItem();
|
|
gasBomb.SetActive(false);
|
|
GameManager.Ins.CreateGasBomb(handPos.position);
|
|
}
|
|
}
|