August 2018
Beginner
334 pages
10h 19m
English
We will create a state that is capable of holding internal states, in order to develop multilevel hierarchical state machines:
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class StateHighLevel : State
{
}
public List<State> states; public State stateInitial; protected State stateCurrent;
public override void OnEnable() { if (stateCurrent == null) stateCurrent = stateInitial; stateCurrent.enabled = ...Read now
Unlock full access