void Awake() { _timesChosen = 0; _manager = FindObjectOfType <PentaPuzzleManager>(); _liner = FindObjectOfType <Liner>(); _text = GetComponentInChildren <Text>(); _animator = GetComponent <Animator>(); }
public Disasm(slice <Sym> syms = default, Liner pcln = default, slice <byte> text = default, ulong textStart = default, ulong textEnd = default, @string goarch = default, disasmFunc disasm = default, binary.ByteOrder byteOrder = default) { this.syms = syms; this.pcln = pcln; this.text = text; this.textStart = textStart; this.textEnd = textEnd; this.goarch = goarch; this.disasm = disasm; this.byteOrder = byteOrder; }
public static float EaseInOut(float currentTime, float start, float end, float totalTime) { bool switchType = currentTime / totalTime >= 0.5f; if (false == switchType) { return(Liner.EaseIn(currentTime, start, end, totalTime)); } else { return(Liner.EaseOut(currentTime, start, end, totalTime)); } }
public BarcodeData GetCopy() { return(new BarcodeData() { StickerId = StickerId, Nomenclature = Nomenclature.GetCopy(), Tray = Tray.GetCopy(), TraysCount = TraysCount, TotalUnitsQuantity = TotalUnitsQuantity, UnitsPerBox = UnitsPerBox, Liner = Liner.GetCopy(), LinersAmount = LinersAmount, Cell = Cell.GetCopy(), Party = Party.GetCopy(), PreviousStickerCode = PreviousStickerCode }); }
private void AddLiner() { // Line(자) 등록 _liner = new Liner(); _liner.Name = "ui_lineRuler"; _liner.Visibility = System.Windows.Visibility.Collapsed; _liner.OnRequestClose += new Liner.EventHandler(_liner_OnRequestClose); gridMain.Children.Add(_liner); gridMain.RegisterName("ui_lineRuler", _liner); // 가상 선 등록 _floatingLine = new Line(); _floatingLine.StrokeThickness = 2.0d; _floatingLine.Stroke = Brushes.Red; _floatingLine.Visibility = System.Windows.Visibility.Collapsed; gridMain.Children.Add(_floatingLine); gridMain.RegisterName("ui_floadingLine", _floatingLine); }
//private int _pentagramCounter; //private Pentagram[] _pentagrams; private void Awake() { _pentaLoader = new PentaLoader(); _liner = FindObjectOfType <Liner>(); _pool = GetComponentInChildren <PoolOfAll>(); _scrollManager = GetComponentInChildren <ScrollManager>(); if (_liner == null || _pool == null || _scrollManager == null) { Debug.LogError("PuzzleManager couldn't find something."); } _selectedWordText.text = ""; Scroll[] pents = FindObjectsOfType <Scroll>(); foreach (Scroll pent in pents) { pent.AddSpellActivatedCallBack(OnWordActivation); pent.AddSelectedWordChangedCallback(OnSelectedWordChanged); } }