void Awake() { if (control == null) { DontDestroyOnLoad(gameObject); control = this; } else { Destroy(gameObject); } load(); }
// Start is called before the first frame update void Start() { combo = 0; isCollecting = false; system = GameObject.FindGameObjectWithTag("System").GetComponent <SystemCtrl>(); for (int i = 0; i < transform.childCount; i++) { dates.Add(transform.GetChild(i).GetComponent <Date>()); } for (int i = 0; i < dates.Count; i++) { dates[i].canSelect = true; } system.CardShuffle(this); SoundManager.PlaySEOneTime(GetComponent <AudioSource>(), Resources.Load <AudioClip>("SE/SE_newData")); }
// Start is called before the first frame update void Start() { system = GameObject.FindGameObjectWithTag("System").GetComponent <SystemCtrl>(); rebootSlider.maxValue = totalTime; Initialize(); }
// Start is called before the first frame update void Start() { system = GameObject.FindGameObjectWithTag("System").GetComponent <SystemCtrl>(); alpha = 1; isClearing = false; }
// Start is called before the first frame update void Start() { system = GameObject.FindGameObjectWithTag("System").GetComponent <SystemCtrl>(); }