void Start() { root = transform.parent.parent.parent.gameObject; // pointe "ROOT" pageParent = transform.parent.gameObject; // pointe "page" character = root.transform.Find("MOBILE_pos/character_scl/character_sprite").gameObject; // pointe "character" _scriptRandomAudioPlayer = character.GetComponent <randomAudioPlayer>(); }
void Start() { root = transform.parent.parent.parent.gameObject; // pointe "ROOT" header = root.transform.Find("GUI/HEADER").gameObject; // pointe "HEADER" collisions = root.transform.Find("MOBILE_pos/STATUS_trm").gameObject; // pointe "Collisions" character = root.transform.Find("MOBILE_pos/character_scl/character_sprite").gameObject; // pointe "character_sprite" _scriptRandomAudioPlayer = character.GetComponent <randomAudioPlayer>(); thisPage = transform.parent.gameObject; // pointe "page" }
void Awake() { root = transform.parent.parent.parent.gameObject; // pointe "ROOT" header = root.transform.Find("GUI/HEADER").gameObject; // pointe "HEADER" bubble = root.transform.Find("MOBILE_pos/bubble_pos").gameObject; collisions = root.transform.Find("MOBILE_pos/STATUS_trm").gameObject; // pointe "Collisions" statusInfo = root.transform.Find("MOBILE_pos/icons_pos/info_trm").gameObject; statusShop = root.transform.Find("MOBILE_pos/icons_pos/shop_trm").gameObject; statusTravel = root.transform.Find("MOBILE_pos/icons_pos/travel_trm").gameObject; statusNewQ = root.transform.Find("MOBILE_pos/icons_pos/Qnew_trm").gameObject; statusQup = root.transform.Find("MOBILE_pos/icons_pos/Qup_trm").gameObject; statusQinfo = root.transform.Find("MOBILE_pos/icons_pos/Qinfo_trm").gameObject; statusEndQ = root.transform.Find("MOBILE_pos/icons_pos/Qend_trm").gameObject; character = root.transform.Find("MOBILE_pos/character_scl/character_sprite").gameObject; // pointe "character_sprite" _scriptRandomAudioPlayer = character.GetComponent <randomAudioPlayer>(); // cherche l'audio de "character" anim = character.GetComponent <Animation>(); // cherche l'animation de "character" }