Add Alot of stuff, Computer, repairStation, Whole game, Many things!
This commit is contained in:
20
UIElementsSchema/Assets/Player/BasicCharacter.cs
Normal file
20
UIElementsSchema/Assets/Player/BasicCharacter.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
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() {
|
||||
_movementBehaviour = GetComponent<MovementBehaviour>();
|
||||
_interactionBehaviour = GetComponent<InteractionBehaviour>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user