0.3.2.0 테스트용 버전 업데이트
This commit is contained in:
parent
d4486a2f06
commit
517285cbc3
File diff suppressed because it is too large
Load Diff
@ -160,7 +160,7 @@ namespace BlueWater.Players.Tycoons
|
|||||||
|
|
||||||
private void Die()
|
private void Die()
|
||||||
{
|
{
|
||||||
VisualFeedbackManager.Instance.SetBaseTimeScale(0f);
|
// VisualFeedbackManager.Instance.SetBaseTimeScale(0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TransitionToState(IState<TycoonPlayer> newState)
|
public void TransitionToState(IState<TycoonPlayer> newState)
|
||||||
|
@ -1,16 +1,17 @@
|
|||||||
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Drawing;
|
using BlueWater;
|
||||||
using BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform;
|
|
||||||
using BlueWater.Audios;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Sirenix.OdinInspector;
|
using Sirenix.OdinInspector;
|
||||||
using Color = UnityEngine.Color;
|
using Color = UnityEngine.Color;
|
||||||
using Image = UnityEngine.UI.Image;
|
using Image = UnityEngine.UI.Image;
|
||||||
|
using Random = UnityEngine.Random;
|
||||||
|
|
||||||
public class TycoonGameOver : MonoBehaviour
|
public class TycoonGameOver : MonoBehaviour
|
||||||
{
|
{
|
||||||
// RectTransform을 통해 UI 오브젝트 위치를 제어
|
// RectTransform을 통해 UI 오브젝트 위치를 제어
|
||||||
private RectTransform _shipRectTransform;
|
private RectTransform _shipRectTransform;
|
||||||
|
private GameObject _panel;
|
||||||
|
|
||||||
// 흔들림 강도와 범위 설정
|
// 흔들림 강도와 범위 설정
|
||||||
public float shakeAmount = 0.1f; // 흔들림 강도
|
public float shakeAmount = 0.1f; // 흔들림 강도
|
||||||
@ -40,11 +41,14 @@ public class TycoonGameOver : MonoBehaviour
|
|||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
_ship = transform.Find("Ship").gameObject;
|
EventManager.OnDead += GameOver_Start;
|
||||||
_text = transform.Find("Text").GetComponent<Image>();
|
|
||||||
|
_panel = transform.Find("Panel").gameObject;
|
||||||
|
_ship = _panel.transform.Find("Ship").gameObject;
|
||||||
|
_text = _panel.transform.Find("Text").GetComponent<Image>();
|
||||||
|
|
||||||
_titleBtn = transform.Find("Title").gameObject;
|
_titleBtn = _panel.transform.Find("Title").gameObject;
|
||||||
_retryBtn = transform.Find("Retry").gameObject;
|
_retryBtn = _panel.transform.Find("Retry").gameObject;
|
||||||
|
|
||||||
originalColor = _text.color; // 원래 색상 저장 (투명도 포함)
|
originalColor = _text.color; // 원래 색상 저장 (투명도 포함)
|
||||||
//_ship = GetComponent.Find("");
|
//_ship = GetComponent.Find("");
|
||||||
@ -54,7 +58,12 @@ public class TycoonGameOver : MonoBehaviour
|
|||||||
_shipRectTransform = _ship.GetComponent<RectTransform>();
|
_shipRectTransform = _ship.GetComponent<RectTransform>();
|
||||||
originalPosition = _shipRectTransform.anchoredPosition;
|
originalPosition = _shipRectTransform.anchoredPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnDestroy()
|
||||||
|
{
|
||||||
|
EventManager.OnDead -= GameOver_Start;
|
||||||
|
}
|
||||||
|
|
||||||
[Button("게임오버 시작")]
|
[Button("게임오버 시작")]
|
||||||
public void GameOver_Start()
|
public void GameOver_Start()
|
||||||
{
|
{
|
||||||
@ -65,6 +74,7 @@ public class TycoonGameOver : MonoBehaviour
|
|||||||
// 코루틴 정의
|
// 코루틴 정의
|
||||||
IEnumerator MoveObject()
|
IEnumerator MoveObject()
|
||||||
{
|
{
|
||||||
|
_panel.SetActive(true);
|
||||||
// 2.0초 동안은 흔들리기만 함
|
// 2.0초 동안은 흔들리기만 함
|
||||||
float timer = 0f;
|
float timer = 0f;
|
||||||
while (timer < shakeDuration)
|
while (timer < shakeDuration)
|
||||||
|
@ -140,7 +140,7 @@ PlayerSettings:
|
|||||||
loadStoreDebugModeEnabled: 0
|
loadStoreDebugModeEnabled: 0
|
||||||
visionOSBundleVersion: 1.0
|
visionOSBundleVersion: 1.0
|
||||||
tvOSBundleVersion: 1.0
|
tvOSBundleVersion: 1.0
|
||||||
bundleVersion: 0.3.1.0
|
bundleVersion: 0.3.2.0
|
||||||
preloadedAssets:
|
preloadedAssets:
|
||||||
- {fileID: -944628639613478452, guid: 4ed6540e2f7ce234888adf8deff1f241, type: 3}
|
- {fileID: -944628639613478452, guid: 4ed6540e2f7ce234888adf8deff1f241, type: 3}
|
||||||
metroInputSource: 0
|
metroInputSource: 0
|
||||||
|
Loading…
Reference in New Issue
Block a user