| | |
| | | [SerializeField] |
| | | private Sprite rank_icon_0, rank_icon_1, rank_icon_2; |
| | | |
| | | public string endlessGameScene = "Endless"; |
| | | public string endlessGameScene = "Endless2D"; |
| | | |
| | | public string loadingScene = "LoadingScene"; |
| | | Button closeBtn; |
| | | // Start is called before the first frame update |
| | | void Start() |
| | | { |
| | | |
| | | transform.Find("BackGround").GetComponent<Button>().onClick.AddListener(() => |
| | | closeBtn = transform.Find("BackGround").GetComponent<Button>(); |
| | | closeBtn.onClick.AddListener(() => |
| | | { |
| | | gameObject.SetActive(false); |
| | | GameConfig.NextSceneName = endlessGameScene; |
| | | SceneManager.LoadScene(loadingScene); |
| | | }); |
| | | closeBtn.interactable = false; |
| | | } |
| | | Text waveText; |
| | | GameObject image_HScore; |
| | |
| | | { |
| | | var temp = Math.Floor(value); |
| | | scoreText.text = temp + ""; |
| | | }, 0, myScore, 3.0f)); |
| | | }, 0, myScore, 1.0f)); |
| | | |
| | | agentTweenSeq.AppendCallback(TextDoTweenFinish); |
| | | agentTweenSeq.Append(waveText.DOText(waveInfo, 0.2f)); |
| | |
| | | { |
| | | playEffectAC(); |
| | | } |
| | | |
| | | closeBtn.interactable = true; |
| | | } |
| | | |
| | | /// <summary> |