Back

Monday 4.7 | Destroyable Objective

Platformer Prototype

Creating a destroyable type of objective. Probably going to be used for a communication tower that can be destroyed making the enemy unable to call back up.


Destroyable Objective

Nothing too fancy. Had to refactor some of the critical strike marker code to work on the objective too.

DestroyableObjective

Day's Work

  • Objective
    • Refactoring
      • class Objective : MonoBehaviour
        • class InteractiveObjective : Objective
        • class DestroyablyObjective : Objective
      • Now has ObjectiveType (Not InteractionType)
      1. SimpleInteraction
      2. ItemGiveInteraction
      3. ItemAsConditionInteraction
      4. Destroyable
    • Destroyable Objective
      • IDamageable
      • Health
  • Critical strike marker
    • Refactoring
      • abstract class CriticalStrikeMarker : MonoBehaviour
        • class EnemyExecutionMarker : CriticalStrikeMarker
        • class ObjectiveCriticalStrikeMarker : CriticalStrikeMarker
    • bool lookAtPlayer
  • Minor bug fixes
Back