private void Start() { _drawAssistant = UIMainController.Instance.CurrentDrawer; UIMainController.SetScore(_score); _drawAssistant.OnEndDraw += CheckCompleteLevel; _previewWindow = UIMainController.GetWindowById(Constants.UI_PREVIEW_WINDOW); }
protected override void Awake() { base.Awake(); _camera = Camera.main; _resWidth = Screen.width; _resHeight = Screen.height; _imgWidth = (int)_previewImage.rectTransform.sizeDelta.x; _imgHeight = (int)_previewImage.rectTransform.sizeDelta.y; _drawAssistant = UIMainController.Instance.CurrentDrawer; }