protected override void Initialize()
 {
     curMoveSpeed = moveSpeed;
     dash         = GetComponent <Dash>();
     wallStick    = GetComponent <WallStick>();
     physics.Collisions.Bottom.RegisterCallback(OnGroundedChange);
     if (wallStick != null)
     {
         wallStick.OnStart(OnWallStickStart);
     }
 }
Пример #2
0
 protected override void Initialize()
 {
     physics.Collisions.Bottom.RegisterCallback(OnGroundedChange);
     wallStick          = GetComponent <WallStick>();
     dash               = GetComponent <Dash>();
     horizontalMovement = GetComponent <HorizontalMovement>();
     faceable           = GetComponent <IFaceable>();
     if (wallStick != null)
     {
         wallStick.OnStart(OnWallStickStart);
     }
 }