protected void SetValues(GlitcherSettingDTO dto) { maxJumpHeight = dto.maxJumpHeight; minJumpHeight = dto.minJumpHeight; timeToJumpApex = dto.timeToJumpApex; moveSpeed = dto.moveSpeed; canWallSlide = dto.canWallSlide; canWallJump = dto.canWallJump; wallJumpClimb = dto.wallJumpClimb; wallJumpOff = dto.wallJumpOff; wallLeap = dto.wallLeap; wallSlideSpeedMax = dto.wallSlideSpeedMax; wallStickTime = dto.wallStickTime; controller = dto.controller; controller.AssignGlitchScript(this); _tran = dto.tran; glAnim = new GlitcherAnimations(dto.animator); audioSource = dto.audio; sManager = (SoundManager)GameManagerBase.instance.getSFX().script; setGravity(); }
void Start() { anim = GetComponent <Animator>(); glitcherController2D = GetComponent <CustomGlitcherController2D>(); Init(); }