Updated Enemy AI System to use STRIPS
This commit is contained in:
@ -3,6 +3,8 @@ using UnityEngine;
|
||||
|
||||
public class PlayerComponent : MonoBehaviour
|
||||
{
|
||||
public static PlayerComponent Instance;
|
||||
|
||||
[SerializeField] private float health = 5f;
|
||||
|
||||
[SerializeField] private float maxHealth = 5f;
|
||||
@ -37,12 +39,14 @@ public class PlayerComponent : MonoBehaviour
|
||||
private void Awake()
|
||||
{
|
||||
flareRegister = FindObjectOfType<FlareRegister>();
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
private void Start()
|
||||
{
|
||||
perlin = cameraFreeLook.GetRig(1).GetCinemachineComponent<CinemachineBasicMultiChannelPerlin>();
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
Reference in New Issue
Block a user