public void Init(DebugPanel _manager, MiniGameInfo _MiniGameInfo, bool _played, float _difficulty = 0.0f) { manager = _manager; minigameInfo = _MiniGameInfo; played = _played; difficulty = _difficulty; Title.text = _MiniGameInfo.data.Code.ToString().Replace(_MiniGameInfo.data.Main + "_", ""); if (_difficulty > 0) { Title.text = "D: " + _difficulty; } ColorButton(); }
void Awake() { if (I != null) { Destroy(gameObject); } else { I = this; DontDestroyOnLoad(gameObject); } if (Panel.activeSelf) { Panel.SetActive(false); } }