You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
504 B
C#
26 lines
504 B
C#
3 months ago
|
using D2D.Core;
|
||
|
using D2D.Gameplay;
|
||
|
using TMPro;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class CharacterCanvas : GameStateMachineUser
|
||
|
{
|
||
|
public HealthBar HealthBar;
|
||
|
public TextMeshProUGUI EvolutionText;
|
||
|
|
||
|
private Camera currentCamera;
|
||
|
private void Awake()
|
||
|
{
|
||
|
currentCamera = Camera.main;
|
||
|
}
|
||
|
|
||
|
private void LateUpdate()
|
||
|
{
|
||
|
transform.forward = currentCamera.transform.forward;
|
||
|
}
|
||
|
|
||
|
protected override void OnGameFinish()
|
||
|
{
|
||
|
gameObject.SetActive(false);
|
||
|
}
|
||
|
}
|