This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.

21 lines
466 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "Player", menuName = "Player/Player", order = 0)]
public class Player : ScriptableObject
{
[SerializeField]
private float currentHealth = 100f;
[SerializeField]
private float currentSpeed = 5f;
public float getCurrentHealth(){
return currentHealth;
}
public float getCurrentSpeed(){
return currentSpeed;
}
}