add reset score [debug]
This commit is contained in:
parent
272623dd7e
commit
37f64b2c11
|
|
@ -1,8 +1,10 @@
|
|||
#if UNITY_EDITOR
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UniRx;
|
||||
using UniRx.Triggers;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace MyGame.Scenes.MiniGame.Scripts
|
||||
{
|
||||
|
|
@ -12,12 +14,19 @@ namespace MyGame.Scenes.MiniGame.Scripts
|
|||
private LineRenderer lineRendererCenter;
|
||||
private LineRenderer lineRendererFront;
|
||||
[SerializeField] private Transform character;
|
||||
[SerializeField] private Button resetScoreButton;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
isDebug.AddTo(this);
|
||||
var debugObject = new GameObject(){name = "debugObject"};
|
||||
|
||||
resetScoreButton.OnClickAsObservable().Subscribe(_ =>
|
||||
{
|
||||
GameDataManager.GameData.ScrollGamePlaceScoreList = new List<ScrollGameScoreData>();
|
||||
GameDataManager.GameData.ScrollGameStageScoreList = new List<ScrollGameScoreData>();
|
||||
}).AddTo(this);
|
||||
|
||||
var debugObject = new GameObject(){name = "debugObject"};
|
||||
var orgScale = debugObject.transform.localScale;
|
||||
isDebug.Subscribe(x =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue