Пример #1
0
    public override ControllState handleInput(BThirdPerson controller, CharacterStats stats)
    {
        if(controller.isInAttackDistance(2.5f)){
            return ControllerZombie._ZombieATTACK;
        }

        if (!controller.getAttention()){
            return ControllerZombie._ZombieSLIDE;
        }

        if(stats.healthFactor <= 0){
            return ControllerZombie._ZombieDIE;
        }

        controller.runToReferenceObject(0.07f);

        return this;
    }