CharacterStateManager states; // We need a reference of the stateManager public virtual void Init(CharacterStateManager stateManager) { states = (CharacterStateManager)stateManager; }
public MonitorInteractingAnimation(CharacterStateManager characterStateManager, string targetBool, string targetState) { states = characterStateManager; this.targetBool = targetBool; this.targetState = targetState; }