예제 #1
0
            public override void CopyFrom(IntIndexInputIndex other)
            {
                InputIndex idx = (InputIndex)other;

                fp   = idx.fp;
                upto = idx.upto;
            }
예제 #2
0
            public override IntIndexInputIndex Clone()
            {
                InputIndex other = new InputIndex(outerInstance);

                other.fp   = fp;
                other.upto = upto;
                return(other);
            }
예제 #3
0
 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);
     }
 }
예제 #4
0
        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;
 }
예제 #6
0
 public virtual void SetKeyStatue(InputIndex index, bool state)
 {
     animator.SetBool(index.ToString(), state);
 }