Ejemplo n.º 1
0
    // 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();
    }
Ejemplo n.º 2
0
 public override void OnEnter()
 {
     Debug.Log("Entering Move State");
     _movement = _stateManager.movement;
 }