예제 #1
0
        public void Initialize(UIGameplay uiManager, int moveCount)
        {
            _uiManager = uiManager;

            _score     = 0;
            _moveCount = moveCount;
        }
예제 #2
0
 void Start()
 {
     UIManager = FindObjectOfType <UIGameplay>();
     UIManager.AddToCurrentPats = OnClickAddPats;
     UpdatePatsText             = UIManager.UpdatePetsText;
     SpawnUpgrade(ButtonForUpgrade.UpgradeEffect.autoClick);
     //SpawnUpgrade(ButtonForUpgrade.UpgradeEffect.spawnStash);
 }
예제 #3
0
    //------------------------------------------------------------------//

    // Use this for initialization
    void Start()
    {
        for (int i = 0; i < Bolasas.Length; i++)
        {
            Bolasas[i] = null;
        }

        MiVisualizacion = GetComponent <Visualizacion>();
        uiGameplay      = FindObjectOfType <UIGameplay>();
    }
예제 #4
0
    void Start()
    {
        Time.timeScale = 1.0f;
        uiGameplay     = FindObjectOfType <UIGameplay>();
#if UNITY_EDITOR
        if (SceneManager.sceneCount < 2)
        {
            OnGameplaySceneStart(new int[] { 0, 0 });
        }
#endif
    }
예제 #5
0
 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;
     }
 }
예제 #6
0
    // 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);
    }
예제 #7
0
 void Start()
 {
     uiGameplay = UIController.Instance.GetChildPanel(UIController.UItype.GameplayUI).GetComponent <UIGameplay>();
     Money      = startMoney;
     Lives      = startLives;
 }
예제 #8
0
 private void Awake()
 {
     uiGameplay = GetComponent <UIGameplay>();
 }