public override ControllState handleInput(BThirdPerson controller, CharacterStats stats) { if(stats.healthFactor <= 0){ return ControllerZombie._ZombieDIE; } if(controller.getAttention()){ return ControllerZombie._ZombieRUN; } if(controller.isStill){ return ControllerZombie._ZombieIDLE; } return this; }
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; }
public override ControllState handleInput(BThirdPerson controller, CharacterStats stats) { controller.controller.BAudioPlayer.Loop("skeleton_idle"); if(controller.stateTime > 1){ if(Input.GetButton("attack")){ return ControllerZombie._ZombieATTACK; } if(controller.getAttention()){ return ControllerZombie._ZombieRUN; } if(stats.healthFactor <= 0){ return ControllerZombie._ZombieDIE; } } return this; }
public override ControllState handleInput(BThirdPerson controller, CharacterStats stats) { if(controller.getAttention()){ return ControllerZombie._ZombieSPAWN; } return this; }
public override ControllState handleInput(BThirdPerson controller, CharacterStats stats) { if(controller.getAttention()){ controller.controller.BAudioPlayer.Play("crow_talk"); return ControllerCrow._CrowFLY; } return this; }