Ejemplo n.º 1
0
 void Start()
 {
     wb = GameObject.Find("WorldBuilder").GetComponent <worldBuilder>();
     transform.position = GameObject.Find("0,0").transform.position;
     UI_C     = GameObject.Find("Canvas").transform.GetChild(0).gameObject.GetComponent <UIController>();
     soundbox = GameObject.Find("SoundCube").GetComponent <SoundBox>();
     ItemDB   = GameObject.Find("GameController").GetComponent <ItemDatabase>();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     worldBuilderScript = GetComponent<worldBuilder>();
     playerTransform = worldBuilderScript.player.transform;
     mainCam.transform.position = new Vector3(playerTransform.position.x, playerTransform.position.y + yOffSet, playerTransform.position.z + zOffSet);
 }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        rb = GetComponent<Rigidbody>();

        CameraScript = GameObject.Find("GameManager").GetComponent<camera>();
        worldBuilderScript = GameObject.Find("GameManager").GetComponent<worldBuilder>();
    }