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