Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

EnemyHook.cs

Erik edited this page Apr 26, 2019 · 3 revisions

Script: EnemyHook.cs


Dependencies:
Public Methods:
  • Awake() - This method is public specifically so that a custom editor can invoke it during edit mode. No other special reason.
  • Hook() - Initializes any components configured and attached to the same GameObject or its children.
Public Events:
  • None
Configurable Fields:
  • enemyTemplate - ScriptableObject template for the Enemy's base values.
General Overview:

If a component is not attached, it is skipped. This removes component dependency (if the component is not attached to the GameObject, it is simply ignored), but does not remove the dependency on the script existing in any project that implements this.

Clone this wiki locally