private void Update() { if (keyController != null && keyController.IsRun) { keyController.Update(); if (ShikakuButtonAction != null && keyController.IsShikakuDown()) { ShikakuButtonAction(); ShikakuButtonAction = null; SoundUtils.PlaySE(SEFIleInfos.CommonEnter1); CloseDialog(); } else if (BatuButtonAction != null && keyController.IsBatuDown()) { BatuButtonAction(); BatuButtonAction = null; SoundUtils.PlaySE(SEFIleInfos.CommonEnter1); CloseDialog(); } else if ((keyController.IsMaruDown() || keyController.IsBatuDown()) && ShikakuButtonAction == null) { SoundUtils.PlaySE(SEFIleInfos.CommonEnter1); CloseDialog(); } } }
public void Update() { if (base.enabled && controllable && !moving && keyController != null) { if (keyController.IsLeftDown()) { MovePrev(); } else if (keyController.IsRightDown()) { MoveNext(); } else if (keyController.IsMaruDown()) { Determine(); } } if (moving) { Move(); } if (radiusScaling) { DoScale(); } if (dirty) { Reposition(); } }