Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        iceCube     = GameObject.Find("icecube");
        gameManager = GameObject.Find("gameManager");

        md = iceCube.GetComponent <meltDown>();
        mc = iceCube.GetComponent <movementCube>();
        gm = gameManager.GetComponent <gameManager>();
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        iceCube = GameObject.Find("icecube");
        //gameManager = GameObject.Find("gameManager");
        destroyer = gameObject.transform.GetChild(0).gameObject;

        md = iceCube.GetComponent <meltDown>();
        //mc = iceCube.GetComponent<movementCube>();
        //gm = gameManager.GetComponent<gameManager>();

        InvokeRepeating("increaseColliderSize", 0.0f, 1.0f);

        fallen = false;
    }