public void InitData() { setStateEnum(weaponType); colliders = transform.GetComponentsInChildren <Collider2D>(); SetColliderEnable(false); _animator = transform.GetChild(0).GetComponentInChildren <Animator>(); Rotator = transform.GetChild(0); vLerpTarget = Rotator.localPosition; tempX = Rotator.transform.localPosition.x; tempScaleX = Rotator.transform.localScale.x; tempScaleY = Rotator.transform.localScale.y; weakedSpeed = 1; ViewDirection = 6; isDash = false; AnimSpeed = 1; attackComboCount = 0; CanAttackCancel = true; CanRotateView = true; currentMoveCondition = 0; newState = false; nowAttack = false; flipValue = false; }
public void cannotMove(WeaponBase weaponBase, MoveWhileAttack move) { if (weaponBase.CanAttackCancel && move == MoveWhileAttack.Move_Attack) { weaponBase.setState(PlayerState.move); } }