Add items, Pickup logic works
This commit is contained in:
@@ -2,12 +2,19 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class BasicCharacter : MonoBehaviour
|
||||
{
|
||||
public class BasicCharacter : MonoBehaviour {
|
||||
protected MovementBehaviour _movementBehaviour;
|
||||
|
||||
//Kinda not the best but it's fine for now
|
||||
//TODO: Fix this, (ask teacher)
|
||||
protected InteractionBehaviour _interactionBehaviour;
|
||||
public InteractionBehaviour InteractionBehaviour {
|
||||
get => _interactionBehaviour;
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
protected virtual void Awake()
|
||||
{
|
||||
protected virtual void Awake() {
|
||||
_movementBehaviour = GetComponent<MovementBehaviour>();
|
||||
_interactionBehaviour = GetComponent<InteractionBehaviour>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user