1챕터
This commit is contained in:
parent
85b2835916
commit
b4bfaffdbf
|
|
@ -71,6 +71,4 @@ messageinfo 엄청 느린 버그
|
||||||
포탈 몸으로 터치 시 웨이포인트 이동 UI 노출
|
포탈 몸으로 터치 시 웨이포인트 이동 UI 노출
|
||||||
- 던전 이동은 못하게
|
- 던전 이동은 못하게
|
||||||
|
|
||||||
챕터 포탈 비활성화 시 터치하면 토스트로 알림
|
챕터 포탈 활성화 시 터치하면 다음 챕터로
|
||||||
챕터 보스 처치 후 다음 챕터 포탈 활성화 : 다음 챕터로
|
|
||||||
- 이동 불가능 -> 포탈로 카메라 회전 -> 포탈 활성화 -> 이동 가능
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -69382,7 +69382,7 @@ MonoBehaviour:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
material_skybox: {fileID: 2100000, guid: 6bfab16f387f95e4bb60f866299be241, type: 2}
|
material_skybox: {fileID: 2100000, guid: 6bfab16f387f95e4bb60f866299be241, type: 2}
|
||||||
gos_map: []
|
gos_map: []
|
||||||
go_nextchapter: {fileID: 5988066866665687138}
|
m_ChapterPortal: {fileID: 1373455475469252021}
|
||||||
m_MapZoneData:
|
m_MapZoneData:
|
||||||
- go_portal: {fileID: 8476541562843838668}
|
- go_portal: {fileID: 8476541562843838668}
|
||||||
CamRot_Portal: 180
|
CamRot_Portal: 180
|
||||||
|
|
@ -72441,7 +72441,15 @@ PrefabInstance:
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_RemovedGameObjects: []
|
m_RemovedGameObjects: []
|
||||||
m_AddedGameObjects: []
|
m_AddedGameObjects: []
|
||||||
m_AddedComponents: []
|
m_AddedComponents:
|
||||||
|
- targetCorrespondingSourceObject: {fileID: 4345297936900204655, guid: 03f1d49d6796e9b469172b6bf504e379,
|
||||||
|
type: 3}
|
||||||
|
insertIndex: 1
|
||||||
|
addedObject: {fileID: 1373455475469252021}
|
||||||
|
- targetCorrespondingSourceObject: {fileID: 4345297936900204655, guid: 03f1d49d6796e9b469172b6bf504e379,
|
||||||
|
type: 3}
|
||||||
|
insertIndex: -1
|
||||||
|
addedObject: {fileID: 6151618224849088395}
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 03f1d49d6796e9b469172b6bf504e379, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 03f1d49d6796e9b469172b6bf504e379, type: 3}
|
||||||
--- !u!4 &5985968764209825404 stripped
|
--- !u!4 &5985968764209825404 stripped
|
||||||
Transform:
|
Transform:
|
||||||
|
|
@ -72455,6 +72463,47 @@ GameObject:
|
||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 8022649529430909407}
|
m_PrefabInstance: {fileID: 8022649529430909407}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1 &5988578377609742768 stripped
|
||||||
|
GameObject:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 4345297936900204655, guid: 03f1d49d6796e9b469172b6bf504e379,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 8022649529430909407}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!114 &1373455475469252021
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5988578377609742768}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 439d925ca22303f4e9004d34330e8ebe, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
go_nextchapter: {fileID: 5988066866665687138}
|
||||||
|
tf_chapterboss: {fileID: 9081765194725363706}
|
||||||
|
--- !u!65 &6151618224849088395
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5988578377609742768}
|
||||||
|
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: 2, y: 2, z: 2}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1001 &8489544506541150777
|
--- !u!1001 &8489544506541150777
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,12 @@ public class BossMobActor : MobActor
|
||||||
{
|
{
|
||||||
base.Set_Die();
|
base.Set_Die();
|
||||||
Init(true, true);
|
Init(true, true);
|
||||||
|
if (n_Reincarnation <= 0)
|
||||||
|
{
|
||||||
|
StopAllCoroutines(); // 모든 스킬 멈춤
|
||||||
|
foreach (var item in dic_indicator) // 모든 인디케이터 끄기
|
||||||
|
item.Value.SetActive(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void On_NavMeshAgent()
|
protected override void On_NavMeshAgent()
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class ChapterPortal : MonoBehaviour
|
||||||
|
{
|
||||||
|
public GameObject go_nextchapter; // 다음 챕터 포탈 활성화
|
||||||
|
public Transform tf_chapterboss;
|
||||||
|
|
||||||
|
public void Set_NextChapter(bool active)
|
||||||
|
{
|
||||||
|
go_nextchapter.SetActive(active);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTriggerEnter(Collider other)
|
||||||
|
{
|
||||||
|
var pcactor = other.GetComponent<PCActor>();
|
||||||
|
if(pcactor && !pcactor.IsEnemy())
|
||||||
|
{
|
||||||
|
if (go_nextchapter.activeSelf)
|
||||||
|
{ // 다음 챕터로
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{ // 보스를 처치하세요.
|
||||||
|
ToastUI.Ins.Set(349);
|
||||||
|
MyValue.m_RealCamera.Set_TargetShow(tf_chapterboss);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 439d925ca22303f4e9004d34330e8ebe
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -44,9 +44,9 @@ public class FieldBossData : MyCoroutine
|
||||||
// 이동 불가능 -> 포탈로 카메라 회전 -> 포탈 활성화 -> 이동 가능
|
// 이동 불가능 -> 포탈로 카메라 회전 -> 포탈 활성화 -> 이동 가능
|
||||||
OptionInfo.Ins.Set_PCMove(MyValue.MyPC, false);
|
OptionInfo.Ins.Set_PCMove(MyValue.MyPC, false);
|
||||||
yield return new WaitForSeconds(0.5f);
|
yield return new WaitForSeconds(0.5f);
|
||||||
MyValue.m_RealCamera.Set_TargetShow(MapData.Ins.go_nextchapter.transform);
|
MyValue.m_RealCamera.Set_TargetShow(MapData.Ins.m_ChapterPortal.go_nextchapter.transform);
|
||||||
yield return new WaitForSeconds(1f);
|
yield return new WaitForSeconds(1f);
|
||||||
MapData.Ins.go_nextchapter.SetActive(true);
|
MapData.Ins.m_ChapterPortal.Set_NextChapter(true);
|
||||||
yield return new WaitForSeconds(1f);
|
yield return new WaitForSeconds(1f);
|
||||||
OptionInfo.Ins.Set_PCMove(MyValue.MyPC, true);
|
OptionInfo.Ins.Set_PCMove(MyValue.MyPC, true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ public class MapData : MonoBehaviourSingletonTemplate<MapData>
|
||||||
{
|
{
|
||||||
public Material material_skybox;
|
public Material material_skybox;
|
||||||
public GameObject[] gos_map; // 미궁에서 사용 (여러 맵 중 하나 오픈)
|
public GameObject[] gos_map; // 미궁에서 사용 (여러 맵 중 하나 오픈)
|
||||||
public GameObject go_nextchapter; // 다음 챕터 포탈 활성화
|
public ChapterPortal m_ChapterPortal;
|
||||||
[SerializeField] public List<MapZoneData> m_MapZoneData;
|
[SerializeField] public List<MapZoneData> m_MapZoneData;
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
|
|
@ -21,9 +21,12 @@ public class MapData : MonoBehaviourSingletonTemplate<MapData>
|
||||||
RenderSettings.fog = false;
|
RenderSettings.fog = false;
|
||||||
RenderSettings.reflectionIntensity = 0f;
|
RenderSettings.reflectionIntensity = 0f;
|
||||||
|
|
||||||
var mapData = MyValue.MyChoiceMapData;
|
if (m_ChapterPortal)
|
||||||
var isclear = ServerInfo.Ins.m_ServerData.MapData_isClearChaper(mapData.n_MapID, mapData.n_Difficult);
|
{
|
||||||
if (go_nextchapter) go_nextchapter.SetActive(isclear);
|
var mapData = MyValue.MyChoiceMapData;
|
||||||
|
var isclear = ServerInfo.Ins.m_ServerData.MapData_isClearChaper(mapData.n_MapID, mapData.n_Difficult);
|
||||||
|
m_ChapterPortal.Set_NextChapter(isclear);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapZoneData Get_MapZoneData(int index) { return m_MapZoneData[index]; }
|
public MapZoneData Get_MapZoneData(int index) { return m_MapZoneData[index]; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue