コード例 #1
0
ファイル: BoyOnStairsState.cs プロジェクト: e-demakova/LD48
 protected override void AfterEnter()
 {
     base.AfterEnter();
     InputReciver.SubscribeOnInputAxis(Move);
     _stairs = _executor.Stairs;
     if (IsOnStairs)
     {
         _transform.position = IsOnStairsTop ? _stairs.TopBound : _stairs.BotBound;
     }
 }
コード例 #2
0
ファイル: BoyMoveState.cs プロジェクト: e-demakova/LD48
 protected override void AfterEnter()
 {
     base.AfterEnter();
     InputReciver.SubscribeOnInputAxis(Move);
 }