Example #1
0
    // Use this for initialization
    void Start () {
        
        world = GetComponent<WorldOld> ();
        modifyTerrain = GetComponent<ModifyTerrain> ();

        /*GameObject tempPlayerObj = Instantiate ( playerPrefab );
        PlayerController tempPlayerController = tempPlayerObj.GetComponent<PlayerController> ();

        tempPlayerController.gameController = this;
        tempPlayerController.setSpawnPoint ( new Vector3 ( 32, 145, 32 ) );*/
    }
Example #2
0
    // Use this for initialization
    void Start () {

        world = gameObject.GetComponent ( "WorldOld" ) as WorldOld;
        cameraGO = GameObject.FindGameObjectWithTag ( "MainCamera" );
        //LoadChunks ( GameObject.FindGameObjectWithTag ( "Player" ).transform.position, 128, 128 );
    }