// Initialize State Manager by connecting to necessary functions public void Init() { // Get Components and assign to appropriate variables machine = GetComponent <PLY_PlayerStateMachine>(); stats = GetComponent <PLY_PlayerStats>(); health = GetComponent <PLY_HealthComponent>(); movement = GetComponent <PLY_MovementComponent>(); SetupAnimator(); SetupRigidbody(); InitializeStateMachine(); InitializeHealthComponent(); }
public override void OnEnter() { Debug.Log("Entering Move State"); _movement = _stateManager.movement; }