// Use this for initialization void Start() { sunMoving = GetComponent <AudioSource>(); move = lampara.GetComponent <moveCube>(); SwithOn = sunSwitch.GetComponent <AudioSource>(); }
void Start() { move = lampara.GetComponent <moveCube>(); cubes = transform.GetChild(0); cube1 = cubes.GetChild(0).gameObject; cube2 = cubes.GetChild(1).gameObject; cube3 = cubes.GetChild(2).gameObject; lt = cubes.GetChild(3).gameObject.GetComponent <Light>(); sphe = cubes.GetChild(4).gameObject; }
// Use this for initialization void Start() { player = GameObject.Find("player"); playerTransform = player.GetComponent <Transform>(); playerScript = player.GetComponent <moveCube>(); hex1Drained = false; hex1Cover = GameObject.Find("hex1Cover"); hex1CoverTransform = hex1Cover.transform; hex1GlowOutline = GameObject.Find("hex1GlowOutline"); hex1GlowRender = hex1GlowOutline.GetComponent <MeshRenderer> (); hex1GlowRender.enabled = false; timeSpentOnHex1 = 2; }
// Use this for initialization void Start() { move = lampara.GetComponent <moveCube>(); // val=AutoController.GetComponent<values>(); // dir=new Vector3(val.x, val.y,0f); }