-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #800 from GG-Studio-990001/778-ch2-접속-게임-슈퍼-아리오-브라…
…더스-sw [CH2] 접속 게임 - 슈퍼 아리오 브라더스 (4)
- Loading branch information
Showing
24 changed files
with
5,680 additions
and
1,022 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using UnityEngine; | ||
|
||
public class ArioCoin : MonoBehaviour | ||
{ | ||
private System.Random random = new System.Random(); | ||
|
||
public void RandomCoin() | ||
{ | ||
// random 객체를 사용하여 값을 추출 | ||
if (random.Next(0, 100) <= 10) | ||
{ | ||
gameObject.SetActive(true); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
using System; | ||
using System.Collections; | ||
using TMPro; | ||
using UnityEngine; | ||
using UnityEngine.Serialization; | ||
using UnityEngine.UI; | ||
|
||
public class ArioStarUI : MonoBehaviour | ||
{ | ||
[SerializeField] private TMP_Text _count; | ||
private Image _image; | ||
private Color _originalColor; | ||
|
||
private void Start() | ||
{ | ||
_image = GetComponent<Image>(); | ||
_count.gameObject.SetActive(false); | ||
_originalColor = _image.color; | ||
} | ||
|
||
public void StartCount() | ||
{ | ||
_count.gameObject.SetActive(true); | ||
StartCoroutine(ItemCount()); | ||
SetImageColorGray(); | ||
} | ||
|
||
private IEnumerator ItemCount() | ||
{ | ||
int num = 20; | ||
|
||
while (num >= 0) | ||
{ | ||
_count.text = num.ToString(); | ||
yield return new WaitForSeconds(1f); | ||
num--; | ||
} | ||
_count.gameObject.SetActive(false); | ||
} | ||
|
||
private void SetImageColorGray() | ||
{ | ||
if (_image != null) | ||
{ | ||
_image.color = Color.gray; // 회색으로 설정 | ||
} | ||
} | ||
|
||
public void ResetImageColor() | ||
{ | ||
if (_image != null) | ||
{ | ||
_image.color = _originalColor; // 원래 색상으로 복구 | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Runtime.CH2.SuperArio; | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class ArioStore : MonoBehaviour | ||
{ | ||
[SerializeField] private GameObject _ario; | ||
|
||
private void Start() | ||
{ | ||
ArioManager.instance.OnEnterStore += EnterStore; | ||
} | ||
|
||
private void OnDestroy() | ||
{ | ||
ArioManager.instance.OnEnterStore -= EnterStore; | ||
} | ||
|
||
public void EnterStore(bool isTrue) | ||
{ | ||
_ario.SetActive(true); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.