I am receiving a compiler error saying;
"Assets\AdventureGame.cs(19,36): error CS1061: ‘State’ does not contain a definition for ‘GetStateStory’ and no accessible extension method ‘GetStateStory’ accepting a first argument of type ‘State’ could be found "
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class AdventureGame : MonoBehaviour
{
[SerializeField] Text textComponent;
[SerializeField] State startingState;
State state;
// Use this for initialization
void Start()
{
state = startingState;
textComponent.text = state.GetStateStory();
}
// Update is called once per frame
void Update()
{
}
}