示例#1
0
    public override void Enter()
    {
        base.Enter();
        SwordCharacter.SetVelocityZero();
        SwordCharacter.transform.position = _detectedPos;
        _cornerPos = SwordCharacter.DetermineCornerPosition();

        _startPos.Set(_cornerPos.x - (SwordCharacter.FacingDirection * SwordCharacterData.StartOffset.x), _cornerPos.y - SwordCharacterData.StartOffset.y);
        _stopPos.Set(_cornerPos.x + (SwordCharacter.FacingDirection * SwordCharacterData.StopOffset.x), _cornerPos.y + SwordCharacterData.StartOffset.y);
        SwordCharacter.transform.position = _startPos;
    }