// Use this for initialization void Start() { MyAudio.ChangeBGM(); QualitySettings.vSyncCount = 1; MyKeys.Game_Score = 0; Window_Succeed.Cut_Number = 0; try { UMManager.StartMission(MyKeys.MissionName.ToString()); } catch (Exception) { Debug.Log("关卡调试"); } try { _fruit_Number_Total = GameObject.FindGameObjectWithTag("FruitManager").transform.childCount; } catch { Debug.Log("没有找到FruitManager"); } _move_Unit = 0.1748f; _human = HumanManager.Nature.Human; _start_Y = _human.position.y; _instance = this; _move_Meter = transform.GetChild(0).GetChild(0).GetComponent <Text>(); _gold = transform.GetChild(1).GetChild(0).GetComponent <Text>(); Transform end_Point = GameObject.Find("EndPoint").transform; _end_Y = end_Point.transform.position.y; }
// Use this for initialization void Start() { MyAudio.ChangeBGM(); }