private void Awake()
 {
     character   = GetComponent <PlayerMovementManager>();
     stateBuffer = new LinkedList <PlayerState>();
     SetObservedState(character.State);
     AddState(character.State);
 }
Exemplo n.º 2
0
 private void Awake()
 {
     inputBuffer = new List <PlayerInputs>();
     character   = GetComponent <PlayerMovementManager>();
     predictor   = GetComponent <PlayerMovementPredictor>();
     inputs      = new PlayerInputs();
 }
 private void Awake()
 {
     pendingInputs = new LinkedList <PlayerInputs>();
     character     = GetComponent <PlayerMovementManager>();
 }
Exemplo n.º 4
0
 private void Awake()
 {
     inputBuffer     = new Queue <PlayerInputs>();
     character       = GetComponent <PlayerMovementManager>();
     character.State = PlayerState.Zero;
 }