2월 5일 데모 버전
This commit is contained in:
parent
9a38c5f42a
commit
e1aa94542e
8
Assets/Resources.meta
Normal file
8
Assets/Resources.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8e54e8713bba31e40b6f2ebe6be8090f
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -687,6 +687,7 @@ GameObject:
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 1604020941}
|
- component: {fileID: 1604020941}
|
||||||
- component: {fileID: 1604020942}
|
- component: {fileID: 1604020942}
|
||||||
|
- component: {fileID: 1604020943}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: Buttons
|
m_Name: Buttons
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
|
|
@ -701,7 +702,7 @@ RectTransform:
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1604020940}
|
m_GameObject: {fileID: 1604020940}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
|
|
@ -741,6 +742,20 @@ MonoBehaviour:
|
||||||
m_ChildScaleWidth: 0
|
m_ChildScaleWidth: 0
|
||||||
m_ChildScaleHeight: 0
|
m_ChildScaleHeight: 0
|
||||||
m_ReverseArrangement: 0
|
m_ReverseArrangement: 0
|
||||||
|
--- !u!114 &1604020943
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1604020940}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 68f6bf7a0efe7484689d6333cfcdfcb9, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::TitleScene
|
||||||
|
startButton: {fileID: 548649948}
|
||||||
|
exitButton: {fileID: 1342387909}
|
||||||
--- !u!1 &1662607961
|
--- !u!1 &1662607961
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,9 @@ public class RecordingManager : MonoBehaviour
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
PlayerAllRecord();
|
SpawnPlayer();
|
||||||
|
CameraEffect effect = Camera.main.GetComponent<CameraEffect>();
|
||||||
|
effect.PlayPreView();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FixedUpdate()
|
private void FixedUpdate()
|
||||||
|
|
@ -71,18 +73,14 @@ public class RecordingManager : MonoBehaviour
|
||||||
|
|
||||||
isPlaying = true;
|
isPlaying = true;
|
||||||
currentReplayIndex = 0;
|
currentReplayIndex = 0;
|
||||||
|
SpawnPlayer();
|
||||||
currentPlayer = Instantiate(playerPrefab, spawnPoint.position, Quaternion.identity);
|
GameManager.instance.PlayerAlive();
|
||||||
currentPlayerRecorder = currentPlayer.GetComponent<InputRecorder>();
|
|
||||||
currentPlayerRecorder.StartRecording();
|
|
||||||
GameManager.instance.currentState = GameState.Playing;
|
|
||||||
activeGhostList.Clear();
|
activeGhostList.Clear();
|
||||||
|
|
||||||
if (!(allRecordedFrames.Count > 0))
|
if (!(allRecordedFrames.Count > 0))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GameManager.instance.PlayerAlive();
|
|
||||||
|
|
||||||
foreach (var record in allRecordedFrames)
|
foreach (var record in allRecordedFrames)
|
||||||
{
|
{
|
||||||
|
|
@ -100,6 +98,13 @@ public class RecordingManager : MonoBehaviour
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void SpawnPlayer()
|
||||||
|
{
|
||||||
|
currentPlayer = Instantiate(playerPrefab, spawnPoint.position, Quaternion.identity);
|
||||||
|
currentPlayerRecorder = currentPlayer.GetComponent<InputRecorder>();
|
||||||
|
currentPlayerRecorder.StartRecording();
|
||||||
|
}
|
||||||
|
|
||||||
public void StopPlayingRecord()
|
public void StopPlayingRecord()
|
||||||
{
|
{
|
||||||
CancelInvoke("PlayerAllRecord");
|
CancelInvoke("PlayerAllRecord");
|
||||||
|
|
|
||||||
25
Assets/Scripts/Scene/TitleScene.cs
Normal file
25
Assets/Scripts/Scene/TitleScene.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
public class TitleScene : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField] private Button startButton;
|
||||||
|
[SerializeField] private Button exitButton;
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
startButton.onClick.AddListener(OnClickStart);
|
||||||
|
exitButton.onClick.AddListener(OnClickExit);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnClickStart()
|
||||||
|
{
|
||||||
|
SceneManager.LoadScene("LevelSelction");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnClickExit()
|
||||||
|
{
|
||||||
|
Application.Quit();
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/Scene/TitleScene.cs.meta
Normal file
2
Assets/Scripts/Scene/TitleScene.cs.meta
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 68f6bf7a0efe7484689d6333cfcdfcb9
|
||||||
|
|
@ -21,4 +21,26 @@ public class CameraEffect : MonoBehaviour
|
||||||
transform.position = Vector3.SmoothDamp(transform.position, targetPosition, ref _velocity, smoothTime);
|
transform.position = Vector3.SmoothDamp(transform.position, targetPosition, ref _velocity, smoothTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void PlayPreView()
|
||||||
|
{
|
||||||
|
StartCoroutine(PlayStartSequence());
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerator PlayStartSequence()
|
||||||
|
{
|
||||||
|
Transform player = GameObject.FindGameObjectWithTag("Player").transform;
|
||||||
|
target = player;
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
|
||||||
|
GameObject cheese = GameObject.FindGameObjectWithTag("Cheese");
|
||||||
|
if (cheese != null)
|
||||||
|
{
|
||||||
|
target = cheese.transform;
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
}
|
||||||
|
|
||||||
|
target = player;
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
GameManager.instance.PlayerAlive();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
8
Assets/Scripts/Utility/Editor.meta
Normal file
8
Assets/Scripts/Utility/Editor.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d6d834ca247cea6438a27b85cb5a946b
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -3,7 +3,7 @@ using UnityEditor;
|
||||||
|
|
||||||
public class ResetPlayerPrefs : MonoBehaviour
|
public class ResetPlayerPrefs : MonoBehaviour
|
||||||
{
|
{
|
||||||
[MenuItem("Window/PlayerPrefs 초기화")]
|
[MenuItem("Window/PlayerPrefs Init")]
|
||||||
private static void ResetPrefs()
|
private static void ResetPrefs()
|
||||||
{
|
{
|
||||||
PlayerPrefs.SetInt("ClearLevelIndex", 1);
|
PlayerPrefs.SetInt("ClearLevelIndex", 1);
|
||||||
|
|
@ -6,17 +6,17 @@ EditorBuildSettings:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Scenes:
|
m_Scenes:
|
||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/Scenes/TestScene/DemoScene.unity
|
path: Assets/Scenes/GameScene/Title.unity
|
||||||
guid: bb931a7a3356d534292f2ae3358f9d4f
|
guid: 1bf6ded80832a1f418b558e23a2c3bcd
|
||||||
- enabled: 0
|
- enabled: 1
|
||||||
path: Assets/Scenes/GameScene/LevelSelction.unity
|
path: Assets/Scenes/GameScene/LevelSelction.unity
|
||||||
guid: bec08e84ebed4d246b980f3181db14fe
|
guid: bec08e84ebed4d246b980f3181db14fe
|
||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/Scenes/LevelScene/Level_1.unity
|
path: Assets/Scenes/LevelScene/Level_1.unity
|
||||||
guid: 19730c5e0a058ef469ec0d38e07ea7cd
|
guid: 9b5baeaf0c333cd41b9f5b78efeaf971
|
||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/Scenes/LevelScene/Level_2.unity
|
path: Assets/Scenes/LevelScene/Level_2.unity
|
||||||
guid: e8659922057195140b7822feae614f92
|
guid: f26e7773abc948940ad5bbd0d020ca78
|
||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/Scenes/LevelScene/Level_3.unity
|
path: Assets/Scenes/LevelScene/Level_3.unity
|
||||||
guid: e0537ae71a6ab824c8926b9deabb99cc
|
guid: e0537ae71a6ab824c8926b9deabb99cc
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,8 @@ PlayerSettings:
|
||||||
visionOSBundleVersion: 1.0
|
visionOSBundleVersion: 1.0
|
||||||
tvOSBundleVersion: 1.0
|
tvOSBundleVersion: 1.0
|
||||||
bundleVersion: 1.0
|
bundleVersion: 1.0
|
||||||
preloadedAssets: []
|
preloadedAssets:
|
||||||
|
- {fileID: -944628639613478452, guid: 2bcd2660ca9b64942af0de543d8d7100, type: 3}
|
||||||
metroInputSource: 0
|
metroInputSource: 0
|
||||||
wsaTransparentSwapchain: 0
|
wsaTransparentSwapchain: 0
|
||||||
m_HolographicPauseOnTrackingLoss: 1
|
m_HolographicPauseOnTrackingLoss: 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user