48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
![]() |
// ***********************************************************************
|
|||
|
// Assembly : Game
|
|||
|
// Author : Kimch
|
|||
|
// Created : 2020-09-02
|
|||
|
// Description :
|
|||
|
// Last Modified By :
|
|||
|
// Last Modified On :
|
|||
|
// ***********************************************************************
|
|||
|
// <copyright file= "Bullet_wheelwind" company="Kimch"></copyright>
|
|||
|
// <summary></summary>
|
|||
|
// ***********************************************************************
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace G
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
///
|
|||
|
/// </summary>
|
|||
|
public class Bullet_wheelwind : MonoBehaviour
|
|||
|
{
|
|||
|
private Collider _collider;
|
|||
|
|
|||
|
private EntityCha _enemy;
|
|||
|
|
|||
|
private void Awake()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
private void Start()
|
|||
|
{
|
|||
|
_enemy = transform.GetComponentInParent<EntityCha>();
|
|||
|
}
|
|||
|
|
|||
|
private void Update()
|
|||
|
{
|
|||
|
this.transform.Rotate(Vector3.up * (Time.deltaTime * -1000f));
|
|||
|
int monmovestat = 0;
|
|||
|
if (_enemy is EntityMinion minion)
|
|||
|
monmovestat = minion.moveState;
|
|||
|
else if (_enemy is EntityBoss boss)
|
|||
|
monmovestat = boss.moveState;
|
|||
|
if (monmovestat <= 0)
|
|||
|
{
|
|||
|
this.gameObject.SetActive(false);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|