// 플레이어가 졌을 때 public void Lose() { print("Lose"); CDS.StopAllCoroutines(); CardCover.SetActive(true); Game_Over.SetActive(true); remain_time = (int)HeroSlider.value / 2; timeText_O.text = "" + remain_time; }
public void Lost_Game() { game_over = new Game_Over(this); current_screen = Screen.Game_Over; }
void Start() { instace = this; }
//private Transform startPosition = position; // Use this for initialization void Start() { rexAnimator = GetComponent <Animator>(); rexRB = GetComponent <Rigidbody2D>(); gameover = GameObject.FindWithTag("MainCamera").GetComponent <Game_Over>(); }