Added class for animation strings
1 files modified
2 files added
New file |
| | |
| | | using System.Collections; |
| | | using UnityEngine; |
| | | |
| | | internal class AnimationStrings |
| | | { |
| | | internal class Player |
| | | { |
| | | internal static string IsMoving = "IsMoving"; |
| | | internal static string IsFlying = "IsFlying"; |
| | | } |
| | | } |
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 9d7e1e1761a99344e9a9982a76ed283a |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | private set |
| | | { |
| | | _isMoving = value; |
| | | animator.SetBool("IsMoving", value); |
| | | animator.SetBool(AnimationStrings.Player.IsMoving, value); |
| | | } |
| | | } |
| | | |
| | |
| | | private set |
| | | { |
| | | _isFlying = value; |
| | | animator.SetBool("IsFlying", value); |
| | | animator.SetBool(AnimationStrings.Player.IsFlying, value); |
| | | rotorSprite.enabled = value; |
| | | } |
| | | } |
| | |
| | | |
| | | private void FixedUpdate() |
| | | { |
| | | |
| | | Debug.Log(moveInput.x); |
| | | if (moveInput.y == 0) |
| | | { |
| | | if (rb.velocity.y <= maxFallSpeed) |