public override void CopyFrom(IntIndexInputIndex other) { InputIndex idx = (InputIndex)other; fp = idx.fp; upto = idx.upto; }
public override IntIndexInputIndex Clone() { InputIndex other = new InputIndex(outerInstance); other.fp = fp; other.upto = upto; return(other); }
public void Start() { for (int i = 0; i < inputs.Length; i++) { InputIndex index = new InputIndex(i, this); inputs[i].SubscribeToPressed(index.Call); inputs[i].SubscribeToPressing(Pressing); inputs[i].SubscribeToReleased(Released); indexes.Add(index); } }
public InputStateDto( InputIndex horizontalKey, InputIndex verticalKey, InputIndex lpKey, InputIndex mpKey, InputIndex hpKey, InputIndex lkKey, InputIndex mkKey, InputIndex hkKey, InputIndex pauseKey, InputIndex cancelMenuKey) { this.HorizontalKey = horizontalKey; this.HorizontalName = InputNames.Dictionary[this.HorizontalKey]; this.VerticalKey = horizontalKey; this.VerticalName = InputNames.Dictionary[this.VerticalKey]; this.LpKey = lpKey; this.LpName = InputNames.Dictionary[this.LpKey]; this.MpKey = mpKey; this.MpName = InputNames.Dictionary[this.MpKey]; this.HpKey = hpKey; this.HpName = InputNames.Dictionary[this.HpKey]; this.LkKey = lkKey; this.LkName = InputNames.Dictionary[this.LkKey]; this.MkKey = mkKey; this.MkName = InputNames.Dictionary[this.MkKey]; this.HkKey = hkKey; this.HkName = InputNames.Dictionary[this.HkKey]; this.PauseKey = pauseKey; this.PauseName = InputNames.Dictionary[this.PauseKey]; this.CancelMenuKey = cancelMenuKey; this.CancelMenuName = InputNames.Dictionary[this.CancelMenuKey]; this.Lp = new InputButtonStateDto(); this.Mp = new InputButtonStateDto(); this.Hp = new InputButtonStateDto(); this.Lk = new InputButtonStateDto(); this.Mk = new InputButtonStateDto(); this.Hk = new InputButtonStateDto(); this.Pause = new InputButtonStateDto(); this.CancelMenu = new InputButtonStateDto(); }
public override IntIndexInputIndex Clone() { InputIndex other = new InputIndex(outerInstance); other.fp = fp; other.upto = upto; return other; }
public virtual void SetKeyStatue(InputIndex index, bool state) { animator.SetBool(index.ToString(), state); }