Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player");
     if (meltIce)
     {
         runner = player.GetComponent<Cryomancer>();
     }
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player");
     boss = GameObject.FindGameObjectWithTag("Boss");
     if (boss != null)
     {
         bStats = boss.GetComponent<BossStats>();
     }
     if (player != null)
     {
         pStats = player.GetComponent<PlayerStats>();
         runner = player.GetComponent<Cryomancer>();
     }
 }
Esempio n. 3
0
    // Use this for initialization
    void Start()
    {
        //Find out info about the world
        gameStats = GameObject.FindGameObjectWithTag("Properties").GetComponent<GameStats>();
        difficulty = gameStats.difficulty;
        player = GameObject.FindGameObjectWithTag("Player");

        //If we have a display to show where the fire will be.
        if (useIndicator)
        {
            burnIndicator = transform.FindChild("BurnIndicator").gameObject;
        }
        runner = player.GetComponent<Cryomancer>();
        stats = player.GetComponent<PlayerStats>();
        fire.SetActive(true);
    }
Esempio n. 4
0
    public void AssignData()
    {
        if (GameObject.FindGameObjectWithTag("Player") != null)
        {
            look = GameObject.FindGameObjectWithTag("Player").GetComponent<MouseLook>();
            look.sensitivityX = mouseXSensitivity;
            look.sensitivityY = mouseYSensitivity;

            MouseLook look2 = GameObject.FindGameObjectWithTag("Player").transform.FindChild("Main Camera").GetComponent<Camera>().GetComponent<MouseLook>();

            look2.sensitivityX = mouseXSensitivity;
            look2.sensitivityY = mouseYSensitivity;

            GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerStats>().difficulty = difficulty;
            runner = GameObject.FindGameObjectWithTag("Player").GetComponent<Cryomancer>();
            runner.changeMaxIce(playerMaxIce);
        }
    }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player");
     stats = player.GetComponent<PlayerStats>();
     runner = player.GetComponent<Cryomancer>();
 }