void LateUpdate() { _ManagerTrail = FindObjectOfType <M08A050T_ManagerTrail>(); _ManagerMountain = FindObjectOfType <M08A050T_ManagerMountain>(); _ManagerCascade = FindObjectOfType <M08A050T_ManagerCascade>(); _ControlNavegacion = FindObjectOfType <ControlNavegacion>(); }
IEnumerator SetActivityType() { yield return(new WaitForSeconds(1)); _ManagerTrail = FindObjectOfType <M08A050T_ManagerTrail>(); _ManagerMountain = FindObjectOfType <M08A050T_ManagerMountain>(); _ManagerCascade = FindObjectOfType <M08A050T_ManagerCascade>(); if (_ManagerTrail && _ManagerTrail.gameObject.activeSelf) { _ManagerTrail.SetScore(int.Parse(name.Split('-')[1]), scoreTotal == _groupToggle.Count); } else if (_ManagerMountain && _ManagerMountain.gameObject.activeSelf) { _ManagerMountain.SetScore(int.Parse(name.Split('-')[1]), scoreTotal == _groupToggle.Count); } else if (_ManagerCascade && _ManagerCascade.gameObject.activeSelf) { _ManagerCascade.SetScore(int.Parse(name.Split('-')[1]), scoreTotal == _groupToggle.Count); } }