Здравствуйте, falcoware, Вы писали:
| skip |
| F>F>using FalcoEngine;
F>using System;
F>using System.Collections;
F>using System.Collections.Generic;
F>public class UI : MonoBehaviour
F>{
F> public GameObject scoreTextObj;
F> public GameObject pressButtonObj;
F> Text ScoreText = null;
F> Button PressButton = null;
F> int nScore = 0;
F> void Start()
F> {
F> if (scoreTextObj != null) ScoreText = scoreTextObj.GetComponent<Text>();
F> if (pressButtonObj != null) PressButton = pressButtonObj.GetComponent<Button>();
F> ScoreText.text = "";
F> if (PressButton != null)
F> {
F> PressButton.onMouseUp += (UIElement sender, int btn, Vector2 cursorPos) =>
F> {
F> ScoreText.text = nScore.ToString();
F> nScore++;
F> };
F> }
F> }
F> void Update()
F> {
F> }
F>}
F>htts://youtube.com/watch?v=de75n2V0KSs |
| |
https://www.youtube.com/watch?v=1dRrE_ROot0