Files
M-Gameton-06/Gameton-06/Assets/Gameton/Scripts/Character/CharacterController.cs
2025-02-19 11:31:08 +09:00

27 lines
672 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TON
{
public class CharacterController : MonoBehaviour
{
private CharacterBase linkedCharactor;
public LayerMask groundLayer;
private void Awake()
{
linkedCharactor = GetComponent<CharacterBase>();
}
private void Start()
{
IngameUI.Instance.SetHP(linkedCharactor.currentHP, linkedCharactor.maxHP);
IngameUI.Instance.SetSP(linkedCharactor.currentSP, linkedCharactor.maxSP);
IngameUI.Instance.SetPlayerImage(PlayerDataManager.Singleton.player.type);
}
}
}