// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2020-09-02 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** using UnityEngine; namespace G { /// /// /// public class Bullet_wheelwind : MonoBehaviour { private Collider _collider; private EntityCha _enemy; private void Awake() { } private void Start() { _enemy = transform.GetComponentInParent(); } 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); } } } }