parent
99082eeb7c
commit
bc88d47e6b
8
Assets/Scripts/Character/Enemy/Bullet.meta
Normal file
8
Assets/Scripts/Character/Enemy/Bullet.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a636af603b3af4d1baccb8296add7485
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
25
Assets/Scripts/Character/Enemy/Bullet/BulletBase.cs
Normal file
25
Assets/Scripts/Character/Enemy/Bullet/BulletBase.cs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public struct BulletData
|
||||||
|
{
|
||||||
|
public Vector3 TargetPos;
|
||||||
|
public float Damage;
|
||||||
|
public float LifeTime;
|
||||||
|
public float Speed;
|
||||||
|
|
||||||
|
public BulletData(Vector3 targetPos, float damage, float lifeTime, float speed)
|
||||||
|
{
|
||||||
|
TargetPos = targetPos;
|
||||||
|
Damage = damage;
|
||||||
|
LifeTime = lifeTime;
|
||||||
|
Speed = speed;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public class BulletBase : MonoBehaviour
|
||||||
|
{
|
||||||
|
private float _speed;
|
||||||
|
private Vector3 _targetPosition;
|
||||||
|
|
||||||
|
}
|
3
Assets/Scripts/Character/Enemy/Bullet/BulletBase.cs.meta
Normal file
3
Assets/Scripts/Character/Enemy/Bullet/BulletBase.cs.meta
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1c349f971ec844b19d94a06e8f93aca0
|
||||||
|
timeCreated: 1745890918
|
8
Assets/Scripts/Character/Enemy/Bullet/MagicMissaile.cs
Normal file
8
Assets/Scripts/Character/Enemy/Bullet/MagicMissaile.cs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class MagicMissaile : BulletBase
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
11
Assets/Scripts/Character/Enemy/Bullet/MagicMissaile.cs.meta
Normal file
11
Assets/Scripts/Character/Enemy/Bullet/MagicMissaile.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cc3f5b56a395f448c881888076d83cba
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -5,6 +5,10 @@ using UnityEngine;
|
|||||||
public class CasterDemonController : EnemyController
|
public class CasterDemonController : EnemyController
|
||||||
{
|
{
|
||||||
private bool _doneBattleSequence = true;
|
private bool _doneBattleSequence = true;
|
||||||
|
private bool _isFirstNoPath = true;
|
||||||
|
|
||||||
|
[SerializeField] private Transform teleportTransform;
|
||||||
|
[SerializeField] private GameObject magicMissilePrefab;
|
||||||
|
|
||||||
public override void BattleSequence()
|
public override void BattleSequence()
|
||||||
{
|
{
|
||||||
@ -25,6 +29,25 @@ public class CasterDemonController : EnemyController
|
|||||||
|
|
||||||
public override void OnCannotFleeBehaviour()
|
public override void OnCannotFleeBehaviour()
|
||||||
{
|
{
|
||||||
Debug.Log("## 몬스터가 막다른 길에 몰려 뭔가 함");
|
if (_isFirstNoPath)
|
||||||
|
{
|
||||||
|
Debug.Log("## 몬스터가 처음으로 막다른 길에 몰렸습니다.");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.Log("## 몬스터가 다시 막다른 길에 몰렸습니다.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ShotMagicMissile()
|
||||||
|
{
|
||||||
|
this.transform.LookAt(TraceTargetTransform.position);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Teleport()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user