This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using PrimeTween; | |
| using UnityEngine; | |
| using UnityEngine.Pool; | |
| using UnityUtils; | |
| public class DamageNumberSpawner : MonoBehaviour { | |
| [SerializeField] WorldSpaceUIDocument uiDocumentPrefab; | |
| [SerializeField] float positionRandomness = 0.2f; | |
| IObjectPool<WorldSpaceUIDocument> uiDocumentPool; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.AI; | |
| using TMPro; | |
| public struct Node { | |
| public Vector3 position; | |
| public bool isWalkable; | |
| public Node(Vector3 position, bool isWalkable = false) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using UnityEngine; | |
| using UnityEngine.Tilemaps; | |
| using Random = UnityEngine.Random; | |
| public class PlayerAnimator : MonoBehaviour { | |
| [SerializeField] private float _minImpactForce = 20; | |
| // Anim times can be gathered from the state itself, but | |
| // for the simplicity of the video... |