private void Awake() { _legsModule = GetComponentInChildren <LegsModule>(); _torsoModule = GetComponentInChildren <TorsoModule>(); _torsoModule.SetupLegs(_legsModule); _unitControl = new UnitControl(this); _bodyCoordinator = new BodyCoordinator(this, _torsoModule, _legsModule, _unitControl); Physics.IgnoreCollision(_gun.Collider, _legsModule.Collider); }
// Use this for initialization void Awake() { this._coordinator = this.gameObject.GetComponent<BodyCoordinator>(); this._steering = this.gameObject.GetComponent<SteeringController>(); }
// Use this for initialization void Awake() { this._coordinator = this.gameObject.GetComponent <BodyCoordinator>(); this._steering = this.gameObject.GetComponent <SteeringController>(); }