Ejemplo n.º 1
0
    void Start()
    {
        screenBounds = Camera.main.ScreenToViewportPoint(new Vector3(Screen.width, Screen.height, Camera.main.transform.position.z));

        //GameEvents
        GameEventScript.current.onPlayerDeath += playerIsDeath;

        lifeUi = FindObjectOfType <LifeUI>();
        lifeUi.setCurrentLifes(playerLifes);
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     for (int i = 0; i < gameStateInstances.Length; i++)
     {
         gameStateInstances[i].SetGamemanager(this);
     }
     somenFactory    = GameObject.FindGameObjectWithTag("SomenFactory").GetComponent <SomenFactory>();
     lifeUI          = GameObject.FindGameObjectWithTag("LifeUI").GetComponent <LifeUI>();
     se_hashiMove    = GameObject.Find("SE_HashiMove").GetComponent <SEScript>();
     se_noodleComing = GameObject.Find("SE_NoodleComing").GetComponent <SEScript>();
     se_water        = GameObject.Find("SE_Water").GetComponent <SEScript>();
     Gameover        = GameObject.Find("Canvas").GetComponent <GameOver>();
     //countDownTimer = GameObject.FindGameObjectWithTag("CountDownTimer");
     //TimeCountUI = GameObject.FindGameObjectWithTag("TimeCountUI").GetComponent<UnityEngine.UI.Text>();
 }
Ejemplo n.º 3
0
 void Start()
 {
     lifeUI  = GameObject.FindGameObjectWithTag("LifeTextTag").GetComponent <LifeUI>();
     Manager = GameObject.FindGameObjectWithTag("Manager").GetComponent <PlayGameManager>();
 }