uh you can switch players now
This commit is contained in:
parent
a0bfc600ef
commit
cb4470f2d6
11 changed files with 582 additions and 235 deletions
|
|
@ -11,6 +11,8 @@ public class EntityStats : MonoBehaviour
|
|||
[Header("Stats")]
|
||||
public float speed;
|
||||
public float jumpPower;
|
||||
[Header("State")]
|
||||
public bool isStalled;
|
||||
[Header("Ground Detection")]
|
||||
[SerializeField] private Transform groundCheck;
|
||||
[SerializeField] private LayerMask groundLayer;
|
||||
|
|
@ -21,6 +23,8 @@ public class EntityStats : MonoBehaviour
|
|||
public List<Ability> abilities = new();
|
||||
[Header("Cache")]
|
||||
public Rigidbody2D rb;
|
||||
public SpriteRenderer sprite;
|
||||
public bool isFacingRight;
|
||||
public void TakeDamage(float damage)
|
||||
{
|
||||
health -= damage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue