Пример #1
0
 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);
 }
Пример #2
0
 // Use this for initialization
 void Awake()
 {
     this._coordinator = this.gameObject.GetComponent<BodyCoordinator>();
     this._steering = this.gameObject.GetComponent<SteeringController>();
 }
Пример #3
0
 // Use this for initialization
 void Awake()
 {
     this._coordinator = this.gameObject.GetComponent <BodyCoordinator>();
     this._steering    = this.gameObject.GetComponent <SteeringController>();
 }