BattleMode.cs 999 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class BattleMode : MonoBehaviour
  5. {
  6. [Header("Battle Button")]
  7. public OpeningButton BattleButton;
  8. [Header("Battle Mode Selection")]
  9. public SelectBattleMode selectBattleMode;
  10. [Header("Battle Deck Selection")]
  11. public SelectBattleDeck selectBattleDeck;
  12. [Header("RandomMatch")]
  13. public LobbyManager_RandomMatch lobbyManager_RandomMatch;
  14. [Header("Room Screen")]
  15. public RoomManager roomManager;
  16. bool first = false;
  17. public void OffBattle()
  18. {
  19. roomManager.Off();
  20. selectBattleDeck.Off();
  21. selectBattleMode.OffSelectBattleMode();
  22. lobbyManager_RandomMatch.OffLobby();
  23. if (!first)
  24. {
  25. BattleButton.OnExit();
  26. first = true;
  27. }
  28. }
  29. public void SetUpBattleMode()
  30. {
  31. selectBattleMode.SetUpSelectBattleMode();
  32. Opening.instance.optionPanel.CloseOptionPanel();
  33. }
  34. }