궁수 : 화살비
This commit is contained in:
parent
b9a7fd5a96
commit
5f52c08679
|
|
@ -44,11 +44,4 @@ classconfig 에 의해 정해짐
|
|||
화살의 경우 화살 궤적 추가하자
|
||||
전직 후 mypcui 갱신
|
||||
|
||||
다른 직업 스킬 구현
|
||||
- 궁수
|
||||
- 견습 사냥꾼
|
||||
|
||||
함정 설치
|
||||
- 데미지는 폭발할 때 범위에 있음
|
||||
- 스킬 버튼 한 번 더 누르면 폭발
|
||||
- 중앙 함정에 닿으면 폭발
|
||||
양손검 애님 및 무기 위치
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
|
@ -279,6 +279,33 @@ AnimatorState:
|
|||
m_MirrorParameter:
|
||||
m_CycleOffsetParameter:
|
||||
m_TimeParameter:
|
||||
--- !u!1102 &-911459475130623398
|
||||
AnimatorState:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: archer_skill3
|
||||
m_Speed: 1
|
||||
m_CycleOffset: 0
|
||||
m_Transitions:
|
||||
- {fileID: 972797023798679901}
|
||||
m_StateMachineBehaviours: []
|
||||
m_Position: {x: 50, y: 50, z: 0}
|
||||
m_IKOnFeet: 0
|
||||
m_WriteDefaultValues: 1
|
||||
m_Mirror: 0
|
||||
m_SpeedParameterActive: 0
|
||||
m_MirrorParameterActive: 0
|
||||
m_CycleOffsetParameterActive: 0
|
||||
m_TimeParameterActive: 0
|
||||
m_Motion: {fileID: 7400000, guid: d1b790700439cb4458c6cb5adf22194b, type: 3}
|
||||
m_Tag:
|
||||
m_SpeedParameter:
|
||||
m_MirrorParameter:
|
||||
m_CycleOffsetParameter:
|
||||
m_TimeParameter:
|
||||
--- !u!91 &9100000
|
||||
AnimatorController:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -1982,6 +2009,9 @@ AnimatorStateMachine:
|
|||
- serializedVersion: 1
|
||||
m_State: {fileID: 3153088493141088479}
|
||||
m_Position: {x: -240, y: -160, z: 0}
|
||||
- serializedVersion: 1
|
||||
m_State: {fileID: -911459475130623398}
|
||||
m_Position: {x: 190, y: -220, z: 0}
|
||||
m_ChildStateMachines:
|
||||
- serializedVersion: 1
|
||||
m_StateMachine: {fileID: 8802888938146306225}
|
||||
|
|
@ -1989,11 +2019,11 @@ AnimatorStateMachine:
|
|||
m_AnyStateTransitions: []
|
||||
m_EntryTransitions: []
|
||||
m_StateMachineTransitions:
|
||||
- first: {fileID: 0}
|
||||
second: []
|
||||
- first: {fileID: 8802888938146306225}
|
||||
second:
|
||||
- {fileID: -7734365087213278084}
|
||||
- first: {fileID: 0}
|
||||
second: []
|
||||
m_StateMachineBehaviours: []
|
||||
m_AnyStatePosition: {x: -240, y: -290, z: 0}
|
||||
m_EntryPosition: {x: -240, y: -360, z: 0}
|
||||
|
|
@ -2052,6 +2082,28 @@ AnimatorStateMachine:
|
|||
m_ExitPosition: {x: 300, y: 60, z: 0}
|
||||
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
||||
m_DefaultState: {fileID: 110211406}
|
||||
--- !u!1101 &972797023798679901
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions: []
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 110222392}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: 0.25
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: 0.7916667
|
||||
m_HasExitTime: 1
|
||||
m_HasFixedDuration: 1
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!1102 &1072992640881131031
|
||||
AnimatorState:
|
||||
serializedVersion: 6
|
||||
|
|
|
|||
|
|
@ -0,0 +1,159 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &4412412033500685237
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3809575434196242508}
|
||||
- component: {fileID: 1210862221287417213}
|
||||
- component: {fileID: 3877254532724485144}
|
||||
m_Layer: 0
|
||||
m_Name: Skill_ArrowRain
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &3809575434196242508
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4412412033500685237}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 4136742659422398755}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1210862221287417213
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4412412033500685237}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b4966d14a53d2d046b60cae7e6e24269, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Pierce: 1
|
||||
str_HitEffect:
|
||||
m_Collider: {fileID: 3877254532724485144}
|
||||
Loop: 15
|
||||
DelayTime: 0.15
|
||||
ColliderActiveFrame: 1
|
||||
--- !u!65 &3877254532724485144
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4412412033500685237}
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_IsTrigger: 1
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 10, y: 10, z: 10}
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &4141565058658184683
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 3809575434196242508}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1701074268541622, guid: ec40dcc0df25c9c44bb4f938a05e1482, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Magic attack
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4893867491853512, guid: ec40dcc0df25c9c44bb4f938a05e1482, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4893867491853512, guid: ec40dcc0df25c9c44bb4f938a05e1482, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: -5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4893867491853512, guid: ec40dcc0df25c9c44bb4f938a05e1482, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4893867491853512, guid: ec40dcc0df25c9c44bb4f938a05e1482, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4893867491853512, guid: ec40dcc0df25c9c44bb4f938a05e1482, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4893867491853512, guid: ec40dcc0df25c9c44bb4f938a05e1482, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4893867491853512, guid: ec40dcc0df25c9c44bb4f938a05e1482, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4893867491853512, guid: ec40dcc0df25c9c44bb4f938a05e1482, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4893867491853512, guid: ec40dcc0df25c9c44bb4f938a05e1482, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4893867491853512, guid: ec40dcc0df25c9c44bb4f938a05e1482, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 199019743312160056, guid: ec40dcc0df25c9c44bb4f938a05e1482,
|
||||
type: 3}
|
||||
propertyPath: m_Materials.Array.size
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 199029111368862752, guid: ec40dcc0df25c9c44bb4f938a05e1482,
|
||||
type: 3}
|
||||
propertyPath: m_Materials.Array.size
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 199276795878250424, guid: ec40dcc0df25c9c44bb4f938a05e1482,
|
||||
type: 3}
|
||||
propertyPath: m_Materials.Array.size
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 199817319516983914, guid: ec40dcc0df25c9c44bb4f938a05e1482,
|
||||
type: 3}
|
||||
propertyPath: m_Materials.Array.size
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents:
|
||||
- {fileID: 114228352284236026, guid: ec40dcc0df25c9c44bb4f938a05e1482, type: 3}
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: ec40dcc0df25c9c44bb4f938a05e1482, type: 3}
|
||||
--- !u!4 &4136742659422398755 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 4893867491853512, guid: ec40dcc0df25c9c44bb4f938a05e1482,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 4141565058658184683}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 80a2a4e460cec2343a8fc72aa8dd7194
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
|
|
@ -11,6 +12,8 @@ public class Projectile_StopAndColliderControl : ProjectileBase
|
|||
[Header("충돌박스가 켜져있는 프레임")]
|
||||
public int ColliderActiveFrame = 2;
|
||||
|
||||
protected Action act_End;
|
||||
|
||||
public override void Set(ProjectileData _data)
|
||||
{
|
||||
base.Set(_data);
|
||||
|
|
@ -21,7 +24,7 @@ public class Projectile_StopAndColliderControl : ProjectileBase
|
|||
StartCoroutine(Co_Collider());
|
||||
}
|
||||
|
||||
IEnumerator Co_Collider()
|
||||
protected IEnumerator Co_Collider()
|
||||
{
|
||||
for (int i = 0; i < Loop; i++)
|
||||
{
|
||||
|
|
@ -32,5 +35,7 @@ public class Projectile_StopAndColliderControl : ProjectileBase
|
|||
yield return null;
|
||||
}
|
||||
m_Collider.enabled = false;
|
||||
act_End?.Invoke();
|
||||
act_End = null;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
public class Skill_ArrowRain : Projectile_StopAndColliderControl
|
||||
{
|
||||
[Header("이펙트 유지 시간")]
|
||||
public float lifetime = 3.2f;
|
||||
|
||||
public override void Set(ProjectileData _data)
|
||||
{
|
||||
base.Set(_data);
|
||||
transform.position = _data.target.Get_position();
|
||||
StopAllCoroutines(); // 일단 정지
|
||||
StartCoroutine(Co_Update());
|
||||
StartCoroutine(Co_Off(lifetime));
|
||||
}
|
||||
|
||||
IEnumerator Co_Update()
|
||||
{
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
StartCoroutine(Co_Collider());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b4966d14a53d2d046b60cae7e6e24269
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -207,7 +207,7 @@ public enum eEffect
|
|||
Skill_SweepAttack, Skill_VitalStrike, Skill_DeathBlade,
|
||||
Skill_ShadowSlash, Skill_DarkAmbush, Skill_PhantomFrenzy,
|
||||
Skill_UnpredictableArrow, Skill_TrapSetup, Skill_BindingArrow,
|
||||
Skill_MultiShot, Skill_RapidShot,
|
||||
Skill_MultiShot, Skill_RapidShot, Skill_ArrowRain,
|
||||
|
||||
Skill_Poison,
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue