public void Initialize(UIGameplay uiManager, int moveCount) { _uiManager = uiManager; _score = 0; _moveCount = moveCount; }
void Start() { UIManager = FindObjectOfType <UIGameplay>(); UIManager.AddToCurrentPats = OnClickAddPats; UpdatePatsText = UIManager.UpdatePetsText; SpawnUpgrade(ButtonForUpgrade.UpgradeEffect.autoClick); //SpawnUpgrade(ButtonForUpgrade.UpgradeEffect.spawnStash); }
//------------------------------------------------------------------// // Use this for initialization void Start() { for (int i = 0; i < Bolasas.Length; i++) { Bolasas[i] = null; } MiVisualizacion = GetComponent <Visualizacion>(); uiGameplay = FindObjectOfType <UIGameplay>(); }
void Start() { Time.timeScale = 1.0f; uiGameplay = FindObjectOfType <UIGameplay>(); #if UNITY_EDITOR if (SceneManager.sceneCount < 2) { OnGameplaySceneStart(new int[] { 0, 0 }); } #endif }
private void Start() { uiGameplay = FindObjectOfType <UIGameplay>(); uiGameplay.UpdateScore(currentScore, scoreNeededToWin); uiGameplay.UpdateBallsLeft(startingBalls); lvlNumber = GameManager.Get().GetCurrentLvl(); Cup[] cups = FindObjectsOfType <Cup>(); for (int i = 0; i < cups.Length; i++) { cups[i].AddToScore = AddToScore; } }
// Start is called before the first frame update void Start() { if (Ins == null) { Ins = this; } totalCoinClaim = 0; index = 0; // reviveCoin.onClick.AddListener(GoBackCoin); // reviveVideo.onClick.AddListener(GoBackVideo); }
void Start() { uiGameplay = UIController.Instance.GetChildPanel(UIController.UItype.GameplayUI).GetComponent <UIGameplay>(); Money = startMoney; Lives = startLives; }
private void Awake() { uiGameplay = GetComponent <UIGameplay>(); }