You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
804 B
25 lines
804 B
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "GameProperty", menuName = "ScriptableObject/Game/GameProperty")]
|
|
public class GameProperty : ScriptableObject
|
|
{
|
|
static readonly string _scriptableObjectPath = "ScriptableObject/";
|
|
|
|
static GameProperty _instance;
|
|
public static GameProperty Instance
|
|
{
|
|
get
|
|
{
|
|
if(_instance is null)
|
|
_instance = Resources.Load<GameProperty>(_scriptableObjectPath + "GameProperty");
|
|
|
|
return _instance;
|
|
}
|
|
}
|
|
|
|
[SerializeField] private Material playerCharacterMaterial;
|
|
public Material PlayerCharacterMaterial => playerCharacterMaterial;
|
|
|
|
[SerializeField] private float playerCharacterAttackRange = 3000000f;
|
|
public float PlayerCharacterAttackRange => playerCharacterAttackRange;
|
|
}
|