コード例 #1
0
    private void Start()
    {
        DOTween.Init();
        _myRigidbody = GetComponent<Rigidbody>();
        _myCharacterAnimator = GetComponent<Character_Animator>();

        _CanMove = true;
        _IsFaceRight = true;
        _IsDead = false;
        _IsLevelFinished = false;

        _runSpeed = 4;
        _jumpSpeed = 25;
        _wallSlideSpeed = 1f;
        _wallJumpForceX = 2000;
        _wallJumpForceY = 1300;
        _groundCheckRadius = 0.2f;
        _wallCheckRadius = 0.5f;
        _fallFasterFactor = 10;
        _characterSlowFactor = 0.9f;


    }
コード例 #2
0
ファイル: TouchScreen.cs プロジェクト: DawidSieczka/ArCombat
 public void InitCharacterAnimator()
 {
     _animator = GameObject.FindGameObjectWithTag(Tag.Player.ToString()).GetComponentInChildren <Character_Animator>();
 }