IEnumerator StartGame() { level = 1; score = 0; startScore = 0; targetScore = 5000; colorSelector.Init(); earnedback = 0; roundsdown = 0; StartCoroutine(Utils.SlowSpawnSiblings(origin)); while (GridBusy()) { yield return(new WaitForEndOfFrame()); } disabled = false; }
public void Awake() { HoverData _hoverData = new HoverData(); foreach (var item in _editModes) { item.Init(_hoverData); } _colorSelector.Init(_colorPicker); _layout.childControlHeight = false; _layout.childControlWidth = false; if (_colorPicker == null) { _colorPicker = FindObjectOfType <Colorpicker>(); } _colorPicker.Init(); }