// Example of how to use AutoComponent ( https://gist.github.com/sabresaurus/339fcaab18ea7c6a2c53 ) | |
[AutoComponent(RecursiveDirection.Up)] | |
Agent parentAgent; | |
[AutoComponent(RecursiveDirection.Down)] | |
MuzzleFlash muzzleFlash; | |
[AutoComponent(RecursiveDirection.Down)] | |
GunAnimator gunAnimator; | |
void Start() | |
{ | |
// Hook up the component references | |
AutoComponent.Setup(this); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment