void Start() { repairGunModule = transform.parent.parent.GetComponentInChildren <Module>(); shootBehavior = this.GetComponent <Behavior.IShoot>(); subscribe(); }
void Start() { targetBehavior = this.GetComponentInChildren <Behavior.ITarget <ITargetable> >(); aimBehavior = this.GetComponentInChildren <Behavior.IAimable <ITargetable> >(); shootBehavior = this.GetComponentInChildren <Behavior.IShoot>(); }