// Start is called before the first frame update void Start() { herCol = GameObject.Find("telo").GetComponent <CollisionHero>(); svlvl = GameObject.Find("zp").GetComponent <SaveLvl>(); invert = GameObject.Find("invertar").GetComponent <Image>(); mncam = GameObject.Find("Main Camera"); if (GameObject.Find("right")) { txt = GameObject.Find("Text").GetComponent <Text>(); retur = GameObject.Find("return").GetComponent <Image>(); right = GameObject.Find("right").GetComponent <Image>(); up = GameObject.Find("up").GetComponent <Image>(); left = GameObject.Find("left").GetComponent <Image>(); down = GameObject.Find("down").GetComponent <Image>(); Cn = GameObject.Find("Canvas"); menu = GameObject.Find("back").GetComponent <Image>(); mn = GameObject.Find("menu").GetComponent <Image>(); ispol = GameObject.Find("Button").GetComponent <Image>(); } if (GameObject.Find("gg").GetComponent <MoveHero>().IsPc&& GameObject.Find("right")) { GameObject.Find("right").SetActive(false); GameObject.Find("up").SetActive(false); GameObject.Find("left").SetActive(false); GameObject.Find("down").SetActive(false); GameObject.Find("Text").SetActive(false); GameObject.Find("Button").SetActive(false); } }
// Start is called before the first frame update void Start() { herCol = GameObject.Find("telo").GetComponent <CollisionHero>(); HerTr = GameObject.Find("gg").GetComponent <Transform>(); MvHer = GameObject.Find("gg").GetComponent <Rigidbody2D>(); HeroAnim = GameObject.Find("gg").GetComponent <Animator>(); MoveHeroAudio = GameObject.Find("movehero").GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { ggmove = GameObject.Find("ggmove").GetComponent <AudioSource>(); sv = GameObject.Find("invertar").GetComponent <SaveMassive>(); rg2D = this.GetComponent <Rigidbody2D>(); MoveAnim = this.GetComponent <Animator>(); ColHer = GameObject.Find("telo").GetComponent <CollisionHero>(); UPUP(); }