Example #1
0
    private void Start()
    {
        _controller = new CharacterController(_rb, _controllerSettings);
        InitaliseFSM();

        DebugWindow.AddPrintTask(() => { return("Golem State: " + _fsm.GetCurrentState().debugName); });
        DebugWindow.AddPrintTask(() => { return("Golem Heading: " + _heading.ToString()); });
        DebugWindow.AddPrintTask(() => { return("Golem Speed: " + _rb.velocity.magnitude.ToString()); });
        DebugWindow.AddPrintTask(() => { return("Golem Velocity: " + _rb.velocity.ToString()); });
    }
Example #2
0
    private void Start()
    {
        _controller = new CharacterController(_rb, _controllerSettings);
        InitialiseFSM();

        DebugWindow.AddPrintTask(() => "Orb State: " + _fsm.GetCurrentState().debugName);
        DebugWindow.AddPrintTask(() => "Orb Heading: " + _currentHeading.ToString());
        DebugWindow.AddPrintTask(() => "Orb Velocity: " + _rb.velocity.ToString());
        DebugWindow.AddPrintTask(() => "Orb Grounded: " + _controller.IsGrounded().ToString());
    }